Multi-lane concurrent bag for facilitating inter-thread communication
Abstract
A method, system, and medium are disclosed for facilitating communication between multiple concurrent threads of execution using a multi-lane concurrent bag. The bag comprises a plurality of independently-accessible concurrent intermediaries (lanes) that are each configured to store data elements. The bag provides an insert function executable to insert a given data element into the bag by selecting one of the intermediaries and inserting the data element into the selected intermediary. The bag also provides a consume function executable to consume a data element from the bag by choosing one of the intermediaries and consuming (removing and returning) a data element stored in the chosen intermediary. The bag guarantees that execution of the consume function consumes a data element if the bag is non-empty and permits multiple threads to execute the insert or consume functions concurrently.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A non-transient, computer-readable storage medium storing program instruction executable by a processor to implement: a concurrent multi-lane bag data structure comprising: a plurality of independently-accessible concurrent intermediaries configured to store data elements; an insert function executable to insert a given data element into the bag by selecting a successive one of the intermediaries, at least in part, by atomically reading and modifying an indication of the most recent intermediary selected by an execution of the insert function, and inserting the data element into the selected i
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 (16)
Non-Patent Literature (5)
- A. Gottlieb, B. D. Lubachevsky, and L. Rudolph, "Basic techniques for the efficient coordination of very large numbers of cooperating sequential processors," ACM, This report (minus sections 2.3, 8, and 9) appeared in the Apr. 1983 issue of TOPLAS, 37 pages.
- D. Hendler, I. Incze, N. Shavit, and M. Tzafrir, "Flat combining and the synchronization-parallelism tradeoff," ACM Jun. 13-15, 2010, 10 pages.
- D. Hendler, I. Incze, N. Shavit, and M. Tzafrir, Scalable flat-combining based synchronous queues, In Distributed Computing. 2010, 15 pages.
- J. M. Mellor-Crummey, Concurrent queues: Practical fetch-and-phi algorithms, 1987, University of Rochester Computer Science Technical Report # 229, 31 pages.
- J. M. Mellor-Crummey, Concurrent queues: Practical fetch-and-φ algorithms, 1987, University of Rochester Computer Science Technical Report # 229, 31 pages.