Scalable method for producer and consumer elimination
Abstract
Producers and consumer processes may synchronize and transfer data using a shared data structure. After locating a potential transfer location that indicates an EMPTY status, a producer may store data to be transferred in the transfer location. A producer may use a compare-and-swap (CAS) operation to store the transfer data to the transfer location. A consumer may subsequently read the transfer data from the transfer location and store, such as by using a CAS operation, a DONE status indicator in the transfer location. The producer may notice the DONE indication and may then set the status location back to EMPTY to indicate that the location is available for future transfers, by the same or a different producer. The producer may also monitor the transfer location and time out if no consumer has picked up the transfer data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 29 · Forward citations: 3.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: a producer process atomically storing a data value to a transfer location; the producer process setting a status indicator for the transfer location to indicate a non-empty status; wherein the producer process atomically stores the data value to the transfer location and sets the status indicator for the transfer location as a single atomic operation; wherein the non-empty status of the status indicator indicates to a consumer process that the stored data value is ready for reading by the consumer process from the transfer location; and the producer p
- Claim 2Depends on #1
The method of claim 1 , further comprising: upon reading the stored data value from t
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (29)
Non-Patent Literature (3)
- "A Scalable Lock-free Stack Algorithm"; Danny Hendler, Nir Shavit, Lena Yerushalmi; ACM Symposium on Parallelism in Architectures and Algorithms, 2004; 10 pages.
- "Elimination Trees and the Construction of Pools and Stacks; Preliminary Version"; Nir Shavit, Dan Touitou; Proceedings of the Seventh Annual ACM Symposium on Parallel Algorithms and Architectures SPAA '95; 10 pages.
- "Simple, Fast and Practical Non-blocking and Blocking Concurrent Queue Algorithms"; Maged M. Michael and Michael L. Scott; Proceedings of the 15th Annual ACM Symposium on Principles of Distributed Computing; pp. 219-228 (1996).