发明名称 Method and apparatus for thread synchronization in an object-based system
摘要 Methods and apparatus which enable threads to lock and to unlock objects disclosed. According to one aspect of the present invention, a method for associating an object with a first thread includes obtaining the contents of the object header field of the object. The contents obtained from the object header field are then stored into a first location within a stack which is associated with the first thread. A reference indicator, which identifies the stack in which the contents obtained from the object header field are stored, is then stored in the object header field. In one embodiment, the method further includes updating a status indicator associated with the object to essentially show that the reference indicator is stored in the object header field. In such an embodiment, the contents of the object header may include a header value, and the status indicator may be updated to indicate that the object is accessible to the first thread.
申请公布号 US6212608(B1) 申请公布日期 2001.04.03
申请号 US19980102980 申请日期 1998.06.22
申请人 SUN MICROSYSTEMS, INC. 发明人 BAK LARS
分类号 G06F9/44;G06F9/46;G06F9/48;G06F9/52;(IPC1-7):G06F12/14 主分类号 G06F9/44
代理机构 代理人
主权项
地址