Facilitating simultaneous submission to a multi-producer queue by multiple threads with inner and outer pointers
Abstract
A technique for ensuring that multiple producer threads may simultaneously write entries in a shared queue and one or more consumers may read valid data from the shared queue. Writing of the shared queue by the multiple producer threads may occur in parallel and the one or more consumer threads may read the shared queue while the producer threads write the shared queue. A “wait-free” mechanism allows any producer thread that writes a shared queue to advance an inner pointer that is used by a consumer thread to read valid data from the shared queue. The inner pointer indicates the most recent valid entry. An output pointer is advanced with an atomic operation to indicate a next entry or portion of memory in the shared queue that is available for allocation. The shared queue may be implemented as a circular buffer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of submitting data to a shared queue by multiple producer threads, the method comprising: allocating a first portion of memory in the shared queue for storing first thread output data to be written by a first producer thread associated with the multiple producer threads by advancing an outer pointer that indicates a next entry in the shared queue that is available for allocation; writing, by the first producer thread, the first thread output data to the first portion of memory in the shared queue; determining, by the first producer thread, that the first portion of memory in the share
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (2)
- Letter, dated May 1, 2013, to UK Intellectual Property Office, responding to Search and Examination Report (dated Oct. 30, 2012) in Application No. GB1211901.2 (3 pages).
- UK Search Report dated Oct. 30, 2012, Application No. GB1211901.2.