发明名称 Lock-free double-ended queue based on a dynamic ring
摘要 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.
申请公布号 US7583687(B2) 申请公布日期 2009.09.01
申请号 US20060325209 申请日期 2006.01.03
申请人 SUN MICROSYSTEMS, INC. 发明人 MARTIN PAUL A.;STEELE GUY L.;FLOOD CHRISTINE H.
分类号 H04L12/28;G06F9/46 主分类号 H04L12/28
代理机构 代理人
主权项
地址