Method and apparatus for avoiding locks by speculatively executing critical sections
Abstract
One embodiment of the present invention provides a system that facilitates avoiding locks by speculatively executing critical sections of code. During operation, the system allows a process to speculatively execute a critical section of code within a program without first acquiring a lock associated with the critical section. If the process subsequently completes the critical section without encountering an interfering data access from another process, the system commits changes made during the speculative execution, and resumes normal non-speculative execution of the program past the critical section. Otherwise, if an interfering data access from another process is encountered during execution of the critical section, the system discards changes made during the speculative execution, and attempts to re-execute the critical section.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 73.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for avoiding locks by speculatively executing critical sections of code, comprising: allowing a process to speculatively execute a critical section of code within a program without first acquiring a lock associated with the critical section; wherein if the process completes the critical section without encountering an interfering data access from another process, the method further comprises: committing changes made during the speculative execution, and resuming normal non-speculative execution of the program past the critical section; and wherein if an interfering data access from an
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 73 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (3)
- "Improving the Throughput of Synchronization by Insertion of Delays" by Rajwar et al. Pro ceedings of the Sixth International Symposium on High-Performance Computer Architecture, Jan. 8-12, 2000, pp. 168-179.*
- "Speculative Lock Elision: Enabling Highly Concurrent Multithreaded Execution" By Rajwar R. et al. Proceedings of the 34th Annual ACM/IEEE International Symposium on Microarchitecture, Austin, TX, Dec. 2001, pp. 294-305.*
- Publication: "Speculative Lock Elison: Enabling High Concurrent Multithreaded Execution" by Rajwar R. et al. Proceedings of the 34<th >Annual ACM/IEEE International Symposium on Microarchitecture, Austin TX, Dec. 1-5, 2001, International Symposium on Microarchitecture, Los Alamitos, CA: IEEE Comp. S