Patent Number: 6,167,424

Title: Method and apparatus for concurrent thread synchronization

Abstract: Methods and apparatus for locking and unlocking objects using synchronized threads are disclosed. According to one aspect of the present invention, a computer-implemented method for using a first thread to obtain a header value of an object includes replacing contents of a header of the object with a sentinel which identifies an execution stack associated with the first thread. Once the object contents are replaced with the sentinel, a determination is made regarding whether the object contents include a header value of the object, and when it is determined that the object contents do not include the header value of the object, a determination is made as to when the object is in the process of being studied by a second thread. In one embodiment, when it is determined that the object is not in the process of being studied by the second thread, the method involves adding the first thread to a list associated with the stack.

Inventors: Bak; Lars (Palo Alto, CA), Lindholm; Timothy G. (Palo Alto, CA)

Assignee: Sun Microsystems, Inc.

International Classification: G06F 9/44 (20060101); G06F 9/48 (20060101); G06F 9/46 (20060101); G06F 009/00 ()

Expiration Date: 12/26/2017