Method and apparatus for thread synchronization in an object-based system
AssigneeSun Microsystems, Inc.
InventorLars Bak
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorLars Bak
Estimating the term…
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.
A computer-implemented method for unlocking an object using a first thread, the object including an object header field, the first thread having an associated first stack, wherein the object is locked by the first thread, the method comprising:
A computer system for unlocking an object using a first thread, the object including an object header field, the first thread having an associated first stack, wherein the object is locked by the first thread, the computer system comprising:
A computer program product for unlocking an object using a first thread, the object including an object header field, the first thread having an associated first stack, wherein the object is locked by the first thread, the computer program product comprising:
Dependencies are inferred from the claim text.