Method and apparatus for selecting a locking policy based on a per-object locking history
Abstract
Methods and apparatus for locking an object using an efficient combination spinning and blocking process are disclosed. According to one aspect of the present invention, a method for acquiring ownership of an object in an object-based environment using a current thread includes determining when the object is owned by another thread, and locking the object when it is determined that the object is not owned by the another thread. A first spinning process, which is implemented when it is determined that the object is owned by the another thread, is arranged such that the current thread spins for up to a predetermined number of spin cycles associated with the current thread and the object. The predetermined number of spin cycles is determined using historical information, and is not based upon an overall system specification. When it is determined that the object has not been locked by the current thread during the first spinning process, a first blocking process is implemented.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 37.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for acquiring ownership of an object in an object-based environment using a current thread, the computer-implemented method comprising: determining when the object is owned by another thread; locking the object when it is determined that the object is not owned by the another thread; implementing a first spinning process when it is determined that the object is owned by the another thread, the first spinning process being arranged such that the current thread spins for up to a predetermined number of spin cycles associated with the current thread and the object, t
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 37 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (2)
- Craig, Travis S. Binding FIFO and Priority-Queuing Spin Locks from Atomic Swap. Department of Computer Science and Engineering, University of Washington. Technical Report 93-02-02.*
- Tay, Y.C, Goodman Nathan, Suri Rajan. Locking Performance in Centralized Databases. ACM Transactions on Database Systems vol. 10, No. 4, Dec. 1985.