Method and apparatus for providing dynamic locks for global resources
Abstract
One embodiment of the present invention provides a system that facilitates applying a dynamic lock to a range of a resource within a computer system. Upon receiving a request to lock to the range of the resource from a thread, the system examines an active lock pool to determine if the range of the resource is currently locked. If not, the system retrieves a dynamic lock from a free lock pool. Next, the system sets resource information in the dynamic lock so that the dynamic lock is associated with the resource. The system also sets owner information in the dynamic lock so that the dynamic lock is associated with the thread that is requesting the dynamic lock. Finally, the system adds the dynamic lock to the active lock pool.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 12.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for applying a dynamic lock to a range of a resource within a computer system, comprising: receiving a request to lock to the range of the resource from a thread in the computer system, wherein the range of the resource is a portion of the resource; examining an active lock pool to determine if the range of the resource is currently locked, wherein the active lock pool is organized as a hash table and wherein examining the active lock pool involves performing a hash lookup into the active lock pool based on the range of the resource, if the hash lookup returns an active lock, determin
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (12 of 12 total)
References Cited — Backward Prior Art (21)
Non-Patent Literature (2)
- Agesen, Ole et al. "An Efficient Meta-lock for Implementing Ubiquitous Synchronization." ACM. 1999.
- Rajwar, Ravi et al. "Speculative Lock Elision: Enabling Highly Concurrent Multithreaded Execution." Dec. 5, 2001.