发明申请
- 专利标题: Lock-free double-ended queue based on a dynamic ring
- 专利标题(中): 基于动态环的无锁双端队列
-
申请号: US11325209申请日: 2006-01-03
-
公开(公告)号: US20070157214A1公开(公告)日: 2007-07-05
- 发明人: Paul Martin , Guy Steele , Christine Flood
- 申请人: Paul Martin , Guy Steele , Christine Flood
- 主分类号: G06F9/46
- IPC分类号: G06F9/46
摘要:
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.
公开/授权文献
- US07583687B2 Lock-free double-ended queue based on a dynamic ring 公开/授权日:2009-09-01
信息查询