Lock-free double-ended queue based on a dynamic ring
AssigneeSun Microsystems, Inc.
InventorsPaul A. Martin, Guy L. Steele, Christine H. Flood
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorsPaul A. Martin, Guy L. Steele, Christine H. Flood
Estimating the term…
One embodiment of the present invention provides a system that facilitates performing operations on a lock-free double-ended queue (deque). This deque is implemented as a doubly-linked list of nodes formed into a ring, so that node pointers in one direction form an inner ring, and node pointers in the other direction form an outer ring. The deque has an inner hat, which points to a node next to the last occupied node along the inner ring, and an outer hat, which points to a node next to the last occupied node along the outer ring. The system uses a double compare-and-swap (DCAS) operation while performing pop and push operations onto either end of the deque, as well as growing and shrinking operations to change the number of nodes that are in the ring used by the deque.
A method for popping a value from a lock-free free double-ended queue (deque), the method comprising:
A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for popping a value from a lock-free double-ended queue (deque), the method comprising:
An apparatus that supports popping a value from a lock-free double-ended queue (deque), the method comprising:
Dependencies are inferred from the claim text.