Fair scalable reader-writer mutual exclusion
Abstract
Implementing fair scalable reader writer mutual exclusion for access to a critical section by a plurality of processing threads in a processing system is accomplished by creating a first queue node for a first thread on the first thread's stack, the queue node representing a request by the first thread to access the critical section; adding the first queue node to a queue pointed to by a single word reader writer mutex for the critical section, the queue representing a list of threads desiring access to the critical section, each queue node in the queue being on a stack of a thread of the plurality of processing threads; waiting until the first queue node has no preceding write requests as indicated by predecessor queue nodes on the queue; entering the critical section by the first thread; exiting the critical section by the first thread; and removing the first queue node from the queue.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of implementing fair scalable reader writer mutual exclusion for access to a critical section of a memory coupled to a processor comprising: creating a first queue node for a first thread of a plurality of processing threads executing on the processor, wherein the first queue node is created in a first region of the memory allocated for a stack of the first thread, the first queue node representing a request by the first thread to access the critical section; adding the first queue node to a queue pointed to by a single word reader writer mutex for the critical se
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- Anonymous, "Spin Queues Nov. 1975" IBM Technical Disclosure Bulletin, W.W. Collier and K.L. Howell; vol. 18, No. 6, Nov. 1, 1975, New York, US, XP002408297, pp. 1953-1954.
- Danny Hendler, et al.; "A Scalable Lock-Free Stack Algorithm"; Proceedings of the Sixteenth Annual ACM Symposium on Parallelism in Algorithms and Architectures; Barcelona, Spain; XP002408296; Jun. 27, 2004; pp. 206-215.
- Harris-A Pragmatic Implementation of Non-Blocking Linked-Lists.
- International Preliminary Report on Patentability, International Application No. PCT/US2006/030521, mailing date Mar. 13, 2008, 8 pages.
- International Search Report and Written Opinion; International Application No. PCT/US2006/030521; date of mailing Dec. 12, 2006; 13 pages.