System to reduce interference in concurrent programs
Abstract
Locks are used to protect variables. All variables protected by a lock are allocated on a page associated with a lock. When a thread (called the owner) acquires the lock, a local copy of the memory page containing the variable is created, the original memory page is protected, and all access of the variable in the owner thread is directed to the local copy. Upon releasing the lock, the changes from the local copy are carried over to the memory page and the memory page is unprotected. Any concurrent access of the variable by non-owner threads triggers an exception handler (due to the protection mechanism) and delays such an access until after the owner thread has finished accessing the variable.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 10.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of locking variables comprising: assigning a variable protected by a single lock to a memory page; creating a local copy of the memory page; locking the memory page; allowing a process to access the local copy of the memory page; returning an exception that is handled by an exception handler when an additional process attempts to access the memory page; after the process is finished with the local copy of the memory page, copying the local copy of the memory page to the memory page; and unlocking the memory page.
- Claim 2Depends on #1
The method of claim 1 , further comprising instructing the process to hold the key to the lock.
- Claim 3Depends on #1
The method of claim 1 , further comprising generating a report on processes that have attempted to reach a variable that is locked.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (4)
- "VeriFIT-Java Race Detector & Healer," http://www.fit.vutbr.cz/research/groups/verifit/tools/racedetect/document.html.
- Letko et al., "AtomRace: Data Race and Atomicity Violation Detector and Healer," http://www.fit.vutbr.cz/~vojnar/Publications/Ivk-padtad-08.pdf.
- Letko et al., "AtomRace: Data Race and Atomicity Violation Detector and Healer," http://www.fit.vutbr.cz/˜vojnar/Publications/Ivk-padtad-08.pdf.
- Ratanaworabhan et al., "Detecting and Tolerating Asymmetric Races," http://www.ices.utexas.edu/research/reports/2008/0806.pdf.