Patents
US 9,996,402 B2#16007194 Most CitedActiveUnited States (USPTO)Utility

System and method for implementing scalable adaptive reader-writer locks

7Forward Citations (#16007194 Global)
0.9/yrCitation Velocity (#8289069 Global)
1.41Citation PageRank (#25118939 Global)
36Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

NUMA-aware reader-writer locks may leverage lock cohorting techniques and may support reader re-entrancy. They may implement a delayed sleep mechanism by which a thread that fails to acquire a lock spins briefly, hoping the lock will be released soon, before blocking on the lock (sleeping). The maximum spin time may be based on the time needed to put a thread to sleep and wake it up. If a lock holder is not executing on a processor, an acquiring thread may go to sleep without first spinning. Threads put in a sleep state may be placed on a turnstile sleep queue associated with the lock. When a writer thread that holds the lock exits a critical section protected by the lock, it may wake all sleeping reader threads and one sleeping writer thread. Reader threads may increment and decrement node-local reader counters upon arrival and departure, respectively.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 7.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method, comprising: performing by a computer: beginning execution of a multithreaded application that comprises one or more requests to acquire a reader-writer lock, wherein the reader-writer lock controls write access to a critical section of code by concurrently executing threads of the application and further controls access to the critical section of code in read-only mode, wherein the reader-writer lock allows at most one writer thread to hold the reader-writer lock for writing at a time, and wherein the reader-writer lock allows multiple reader threads to hold the reader-writer lock in

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (36)

PatentTitleYearCitations
US 5,317,737 AMethod and apparatus for controlling a re-entrant synchronization lock tenure in a multiprocessor system199428
WO 9,706,484 A1Method and apparatus for strong affinity multiprocessor scheduling—30
US 6,289,369 B1Affinity, locality, and load balancing in scheduling user program-level threads for execution by a computer system2001278
US 6,480,918 B1Lingering locks with fairness control for multi-node computer systems2002132
US 2003041173 A1Synchronization objects for multi-computer systems—137
US 6,546,443 B1Concurrency-safe reader-writer lock with time out support2003152
US 6,578,131 B1Scaleable hash table for shared-memory multiprocessor system2003184
US 6,594,683 B1Method, apparatus and computer program product for locking interrelated data structures in a multi-threaded computing environment200336
US 2003195920 A1Apparatus and method for minimizing lock contention in a multiple processor system with multiple run queues—46
US 2003236817 A1Multiprocessing systems employing hierarchical spin locks—18
US 2005114609 A1Computer-implemented system and method for lock handling—41
US 6,965,961 B1Queue-based spin lock with timeout200549
US 6,985,984 B2Multiprocessing systems employing hierarchical back-off locks20065
US 2006136516 A1Techniques for maintaining consistency for different requestors of files in a database management system—38
US 2007039000 A1Lock order determination method and system—17
US 2007239915 A1Increasing functionality of a reader-writer lock—76
US 2007271450 A1Method and system for enhanced thread synchronization and coordination—54
US 7,318,128 B1Methods and apparatus for selecting processes for execution200865
US 2008209433 A1Adaptive Reader-Writer Lock—22
US 2008320262 A1Read/write lock with reduced reader lock sampling overhead in absence of writer lock acquisition—47
US 7,487,279 B2Achieving both locking fairness and locking performance with spin locks200910
US 7,529,844 B2Multiprocessing systems employing hierarchical spin locks200912
US 2009125548 A1System and Method for Implementing Shared Scalable Nonzero Indicators—39

Non-Patent Literature (5)

  • "NUMA-Aware locking routines-design and implementation in Linux" downloaded from-sc.tamu.edu/ whitepapers/altix/numalocks.pdf, pp. 1-10, 2009.
  • “NUMA-Aware locking routines—design and implementation in Linux” downloaded from—sc.tamu.edu/ whitepapers/altix/numalocks.pdf, pp. 1-10, 2009.
  • 0. Krieger, M. Stumm, R. Unrau, and J. Hanna. "A fair fast scalable reader-writer lock" ICPP 1993. pp. 1-4.
  • A. Agarwal and M. Cherian. "Adaptive backoff synchronization techniques". SIGARCH Comput. Archit. News, 17:396-406, Apr. 1989.
  • D. Dice and A. Garthwaite. "Mostly Lock Free Malloc". In Proceedings of the 3rd International Symposium on Memory Management, pp. 163-174, 2002.