Invention Grant
US08806168B2 Producer-consumer data transfer using piecewise circular queue
有权
使用分段循环队列的生产者 - 消费者数据传输
- Patent Title: Producer-consumer data transfer using piecewise circular queue
- Patent Title (中): 使用分段循环队列的生产者 - 消费者数据传输
-
Application No.: US13230833Application Date: 2011-09-12
-
Publication No.: US08806168B2Publication Date: 2014-08-12
- Inventor: Igor Ostrovsky , Stephen H. Toub
- Applicant: Igor Ostrovsky , Stephen H. Toub
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agent Kevin Sullivan; Raghu Chinagudabha; Micky Minhas
- Main IPC: G06F12/02
- IPC: G06F12/02

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
- US20130067160A1 PRODUCER-CONSUMER DATA TRANSFER USING PIECEWISE CIRCULAR QUEUE Public/Granted day:2013-03-14
Information query