Reader-writer lock
Abstract
A method and system for implementing a reader-writer lock having a write lock requested by a thread is disclosed. The reader-writer lock is structured to have counters and a flag. The counters use an atomic process to count read locks held or outstanding read lock requests. The flag identifies a counter and is configured to distinguish between counters. A read lock is prepared, acquired, and released. The atomic process is used and the flag or flagged counter is polled. A write lock is prepared, acquired, and released.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for processing a set of access requests of a resource shared by a set of threads, the method comprising: creating a set of pools for storing the set of access requests of the resource, the set of pools including a first pool configured to be active and a second pool configured to be inactive; processing a first request of a first type of the set of access requests of the first pool, wherein processing a first request of a first type further comprises: counting with a first counter, using an atomic process to increment the first counter in response to a first bit o
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
Non-Patent Literature (5)
- Bhatt, V., et al., "Constant RMR Solutions to Reader Writer Synchronization", PODC'10, Jul. 25-28, 2010, Zurich, Switzerland. pp. 468-477. Copyright 2010 ACM 978-1-60558-888-9/10/07.
- Brandenburg, B., et al., "Reader-Writer Synchronization for Shared-Memory Multiprocessor Real-Time Systems", Department of Computer Science, University of North Carolina at Chapel Hill. pp. 1-20. http://www.cs.unc.edu/˜anderson/papers/ecrts09b.pdf.
- Calciu, I., et al., "NUMA-Aware Reader-Writer Locks", Proceedings of the 18th ACM SIGPLAN symposium on Principles and practice of parallel programming. Shenzhen, China. pp. 157-166. ACM New York, NY, USA 2013.978-1-4503-1922-5/13/02.
- Steinmacher-Burow, "Reader-Writer Lock", U.S. Appl. No. 14/160,675, filed Jan. 22, 2014.
- Unknown, "Linux Cross Reference-Free Electrons", http://lxr.free-electrons.com/source/include/asm-generic/atomic64, last printed Jan. 20, 2014. 2 pages. Copyright © 2009 Paul Mackerras, IBM Corp.