发明名称 Mechanism for managing the locking and unlocking of objects in Java
摘要 A mechanism for managing the locking and unlocking of objects. The mechanism comprises a transition vector having an ordered set of transition elements. Each of the transition elements includes a locking function or a pointer to the locking function and an unlocking function or a pointer to the unlocking function. When an object is created a transition vector is assigned to the object. The object includes a reference element which references a transition element in the vector. In response to a request to lock the object, the locking function in the transition element is invoked and the next transition element is assigned to the object and the reference element in the object is updated. For a request to unlock the object, the unlocking function in the transition element is invoked and the previous transition element is assigned to the object and the reference element is updated. The mechanism improves execution overhead by providing an implicit count for determining the lock count on an object. The mechanism also features typed transition vectors for structured locking/unlocking and unstructured locking/unlocking operations.
申请公布号 US6411983(B1) 申请公布日期 2002.06.25
申请号 US19980067577 申请日期 1998.04.28
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 GALLOP PATRICK GEORGE
分类号 G06F9/46;(IPC1-7):G06F9/46 主分类号 G06F9/46
代理机构 代理人
主权项
地址