Lock mechanism to enable atomic updates to shared memory
Abstract
A system and method for locking and unlocking access to a shared memory for atomic operations provides immediate feedback indicating whether or not the lock was successful. Read data is returned to the requestor with the lock status. The lock status may be changed concurrently when locking during a read or unlocking during a write. Therefore, it is not necessary to check the lock status as a separate transaction prior to or during a read-modify-write operation. Additionally, a lock or unlock may be explicitly specified for each atomic memory operation. Therefore, lock operations are not performed for operations that do not modify the contents of a memory location.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 4.
Claims (3 — 2 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for reading a location in a shared memory, the method comprising: receiving a shared memory read instruction for the location in the shared memory for multiple parallel threads of a program; determining that the shared memory read instruction includes a lock command suffix indicating that a lock of the location is requested; and returning a lock result indicating whether or not the lock of the location was acquired for the shared memory read instruction, wherein execution across the multiple parallel threads diverges when the lock result indicates that at least one of the multiple par
- Claim 2Depends on #1
The method of claim 1 , further comprising, after returning the lock result, locking the location by setting a lock flag when the lock is acquired for the shared memory read instruction.
- Claim 3Independent Claim
The method of c
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗