Concurrent execution of critical sections by eliding ownership of locks
Abstract
Critical sections of multi-threaded programs, normally protected by locks providing access by only one thread, are speculatively executed concurrently by multiple threads with elision of the lock acquisition and release. Upon a completion of the speculative execution without actual conflict as may be identified using standard cache protocols, the speculative execution is committed, otherwise the speculative execution is squashed. Speculative execution with elision of the lock acquisition, allows a greater degree of parallel execution in multi-threaded programs with aggressive lock usage.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 94.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of coordinating access to common memory by multiple program threads comprising the steps of: in each given program thread, (a) detecting the beginning of a critical section of the given program thread in which interruption to access of the common memory could occur resulting from execution of other program threads; (b) speculatively executing the critical section; and (c) committing the speculative execution of the critical section if there has been no interruption to access of the common memory and squashing the speculative execution of the critical section if there has been an inter
- Claim 2Depends on #1
The method of claim 1 wherein the interruption is: (a) another thread writing data read by the given program thread in the criti
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗