Patent · US Active

System and method for implementing scalable adaptive reader-writer locks

US9996402B2 · kind B2 · utility

7Cited by
15References
20Claims
0Family size

Assignee

Inventor

Key dates

Filing dateApr 7, 2014
Grant dateJun 12, 2018
Priority date
Expiry dateAug 8, 2034

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F12/0811
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

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.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.