Efficient non-blocking K-compare-single-swap operation
Abstract
The design of nonblocking linked data structures using single-location synchronization primitives such as compare-and-swap (CAS) is a complex affair that often requires severe restrictions on the way pointers are used. One way to address this problem is to provide stronger synchronization operations, for example, ones that atomically modify one memory location while simultaneously verifying the contents of others. We provide a simple and highly efficient nonblocking implementation of such an operation: an atomic k-word-compare single-swap operation (KCSS). Our implementation is obstruction-free. As a result, it is highly efficient in the uncontended case and relies on contention management mechanisms in the contended cases. It allows linked data structure manipulation without the complexity and restrictions of other solutions. Additionally, as a building block of some implementations of our techniques, we have developed the first nonblocking software implementation of load-linked/store-conditional that does not severely restrict word size.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 37 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, comprising: using a computer to perform: associating a respective tagged id location with each of a plurality of locations targeted by a multiple target synchronization operation, wherein one of the plurality of locations is a location to be modified by the multiple target synchronization operation; displacing an application value stored in the to-be-modified one of the targeted locations, wherein said displacing comprises: storing a first tagged id distinguishable from the application value in the to-be-modified one of the targeted locations and in the tagged id location associated
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 9,135,178 B2 | Efficient non-blocking K-compare-single-swap operation | 2015 | 3 |
References Cited — Backward Prior Art (37)
Non-Patent Literature (5)
- Afek, "Atomic Snapshots of Shared Memory," Journal of the ACM, vol. 40, No. 4, pp. 873-890, 1993.
- Afek, et al., "Disentangling Multi-Object Operations," Proceedings of the 16th Annual ACM Symposium on Principles of Distributed Computing, pp. 111-120, Aug. 1997.
- Afek, Yehuda et al., "Long -Lived Renaming made Adaptive", 18th Annual ACM Symposium on Principles of Distributed Computing, pp. 91-104, 1999.
- Agesen, et al., "DCAS-Based Concurrent Deques," SPAA 2000. Proceedings of the 12th Annual ACM Symposium on Parallel Algorithms and Architectures, pp. 137, 146, ACM Press, ISBN: 1-58113-185-2, 2000.
- Agesen, et al., "DCAS-Based Concurrent Deques," Theory of Computing Systems., vol. 35, No. 3, pp. 349-386, May 2002.