发明名称 Method and apparatus for selecting a locking policy based on a per-object locking history
摘要 <p>Methods and apparatus for locking an object using an efficient combination spinning and blocking process are disclosed. According to one aspect of the present invention, a method for acquiring ownership of an object in an object-based environment using a current thread includes determining when the object is owned by another thread, and locking the object when it is determined that the object is not owned by the another thread. A first spinning process, which is implemented when it is determined that the object is owned by the another thread, is arranged such that the current thread spins for up to a predetermined number of spin cycles associated with the current thread and the object. The predetermined number of spin cycles is determined using historical information, and is not based upon an overall system specification. When it is determined that the object has not been locked by the current thread during the first spinning process, a first blocking process is implemented.</p>
申请公布号 EP1104900(A2) 申请公布日期 2001.06.06
申请号 EP20000310297 申请日期 2000.11.20
申请人 SUN MICROSYSTEMS, INC. 发明人 GOMES, BENEDICT A.;WEISSMAN, BORIS
分类号 G06F9/52;G06F9/46;(IPC1-7):G06F9/46 主分类号 G06F9/52
代理机构 代理人
主权项
地址