Methods and apparatus for locking objects in a multi-threaded environment
Abstract
Apparatus and methods for locking objects in a multi-threaded environment are provided. An example method permits a first thread to lock an object to exclusively execute at least a portion of a routine associated with the object. The method includes, if the object is owned by a second thread, locking the object via an atomic execution and assigning ownership of the object to the first thread. It also includes, if the object is owned by the first thread, locking the object without an atomic execution.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 31.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
For use in a multi-thread environment, a method of locking an object to permit a thread to exclusively execute at least a portion of a routine associated with the object, the method comprising: receiving a request to access the object from a first thread; determining if the object is owned by the first thread; if the object is owned by a second thread, locking the object and setting a lock owner field to identify the first thread via an atomic execution; and if the object is owned by the first thread, locking the object and setting the lock owner field to identify the first thread without an a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 31 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- "Fast Recursive Locking in Java," May 1, 2000, IBMTechnical Disclosure Bulletin, NNRD433103.
- "The Authoratative Dictionary of IEEE Standard Terms," 2000, IEEE, p. 719.
- ECMA. C# Language Specification, Draft 01, p. 182. Oct. 2000.
- ECMA. Standard ECMA-335 Common Language Infrastructure, Partition I, second edition, pp. 94 and 95. Dec. 2002.
- Intel Open Runtime Platform (ORP), http://orp.sourceforge.net/. As printed on Aug. 18, 2003.