Memory-to-memory compare/exchange instructions to support non-blocking synchronization schemes
Abstract
A coherency technique for multiprocessor systems in which threads perform atomic read or atomic write transactions pursuant to memory-to-memory copy instructions or memory-to-memory compare-and-exchange instructions. Although the source reads and target writes are each atomic, the instruction is not required to be atomic from the read through the write operation. Accordingly, once a first thread reads source data pursuant to a read, for example, it may allow other threads to access that data prior to completing its own target write. The data may include a version stamp. After the first thread operates on the data, software may read in the version stamp a second time. If the two version stamps agree, the results of the thread's operation may be considered valid for lookup operations. For a compare and exchange operation, a thread may read data from a source location. Subsequently, the thread may read atomically a current copy of a version stamp from a target address, compare it to a version of the same version stamp obtained earlier, and, if the two version stamps agree, write the source data to the target address.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 12.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of implementing an atomic compare and exchange operation, comprising: atomically reading data from a target memory location to a thread; and atomically: reading a first version stamp from the target memory location, comparing the first version stamp with a second version stamp stored by the thread, and if the first and the second version stamps agree, writing source data to the target memory location, wherein other threads are permitted access to the target memory location between atomic operations.
- Claim 2Depends on #1
The method of claim 1 , wherein the reading and writing respectively transfer a quantity of data larger than an internal register of the thread.
- Claim 3Depends on #1
The method of claim 1 , wherein the reading and writing respectively transfer a quantity of data up to a cache l
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 (0)
No backward patent references recorded.
Non-Patent Literature (2)
- Pentium(R) Pro Family Developer's Manual, vol. 2, Programmer's Reference Manual, 1996 Chapter 11, pp. 11-69 to 11-70, 11-71 to 11-72, 11-271 to 11-272, 11-372 to 11-373.
- Pentium® Pro Family Developer's Manual, vol. 2, Programmer's Reference Manual, 1996 Chapter 11, pp. 11-69 to 11-70, 11-71 to 11-72, 11-271 to 11-272, 11-372 to 11-373.