发明授权
US6148300A Hybrid queue and backoff computer resource lock featuring different spin
speeds corresponding to multiple-states
失效
具有不同旋转速度的混合队列和后退计算机资源锁对应于多个状态
- 专利标题: Hybrid queue and backoff computer resource lock featuring different spin speeds corresponding to multiple-states
- 专利标题(中): 具有不同旋转速度的混合队列和后退计算机资源锁对应于多个状态
-
申请号: US100667申请日: 1998-06-19
-
公开(公告)号: US6148300A公开(公告)日: 2000-11-14
- 发明人: Ashok Singhal , Erik Hagersten
- 申请人: Ashok Singhal , Erik Hagersten
- 申请人地址: CA Palo Alto
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: CA Palo Alto
- 主分类号: G06F9/52
- IPC分类号: G06F9/52 ; G06F9/46 ; G06F13/00 ; G06F17/30
摘要:
A probabilistic queue lock divides requesters for a lock into at least three sets. In one embodiment, the requesters are divided into the owner of the lock, the first waiting contender, and the other waiting contenders. The first waiting contender is made probabilistically more likely to obtain the lock by having it spin faster than the other waiting contenders. Because the other waiting contenders spin more slowly, the first waiting contender is more likely to be able to observe the free lock and acquire it before the other waiting contenders notice that it is free. The first of the other waiting contenders that determines that the previous first waiting contender has acquired the lock is promoted to be the new first waiting contender and begins spinning fast. Because only the first waiting contender is spinning fast on the lock, it is probable that only the first waiting contender will attempt to acquire the lock when it becomes available.
公开/授权文献
信息查询