发明授权
US07017160B2 Concurrent shared object implemented using a linked-list with amortized node allocation
有权
使用具有摊销节点分配的链接列表实现的并发共享对象
- 专利标题: Concurrent shared object implemented using a linked-list with amortized node allocation
- 专利标题(中): 使用具有摊销节点分配的链接列表实现的并发共享对象
-
申请号: US09837669申请日: 2001-04-18
-
公开(公告)号: US07017160B2公开(公告)日: 2006-03-21
- 发明人: Paul A. Martin , David L. Detlefs , Alexander T. Garthwaite , Guy L. Steele, Jr. , Mark S. Moir
- 申请人: Paul A. Martin , David L. Detlefs , Alexander T. Garthwaite , Guy L. Steele, Jr. , Mark S. Moir
- 申请人地址: US CA Sunnyvale
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: US CA Sunnyvale
- 代理机构: Zagorin O'Brien Graham LLP
- 主分类号: G06F9/44
- IPC分类号: G06F9/44 ; G06F9/54
摘要:
The Hat Trick deque requires only a single DCAS for most pushes and pops. The left and right ends do not interfere with each other until there is one or fewer items in the queue, and then a DCAS adjudicates between competing pops. By choosing a granularity greater than a single node, the user can amortize the costs of adding additional storage over multiple push (and pop) operations that employ the added storage. A suitable removal strategy can provide similar amortization advantages. The technique of leaving spare nodes linked in the structure allows an indefinite number of pushes and pops at a given deque end to proceed without the need to invoke memory allocation or reclamation so long as the difference between the number of pushes and the number of pops remains within given bounds. Both garbage collection dependent and explicit reclamation implementations are described.
公开/授权文献
信息查询