Invention Grant
US08806168B2 Producer-consumer data transfer using piecewise circular queue 有权
使用分段循环队列的生产者 - 消费者数据传输

Producer-consumer data transfer using piecewise circular queue
Abstract:
A method includes producing values with a producer thread, and providing a queue data structure including a first array of storage locations for storing the values. The first array has a first tail pointer and a first linking pointer. If a number of values stored in the first array is less than a capacity of the first array, an enqueue operation writes a new value at a storage location pointed to by the first tail pointer and advances the first tail pointer. If the number of values stored in the first array is equal to the capacity of the first array, a second array of storage locations is allocated in the queue. The second array has a second tail pointer. The first array is linked to the second array with the first linking pointer. An enqueue operation writes the new value at a storage location pointed to by the second tail pointer and advances the second tail pointer.
Public/Granted literature
Information query
Patent Agency Ranking
0/0