Invention Grant
- Patent Title: Scalable reader-writer lock
- Patent Title (中): 可扩展读写器锁
-
Application No.: US12406890Application Date: 2009-03-18
-
Publication No.: US08504540B2Publication Date: 2013-08-06
- Inventor: Marek K. Olszewski , Yosef Lev , Victor M. Luchangco
- Applicant: Marek K. Olszewski , Yosef Lev , Victor M. Luchangco
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood Shores
- Agency: Park, Vaughan, Fleming & Dowler, LLP
- Main IPC: G06F17/30
- IPC: G06F17/30

Abstract:
A reader-writer lock is provided that scales to accommodate multiple readers without contention. The lock comprises a hierarchical C-SNZI (Conditioned Scalable Non-Zero Indicator) structure that scales with the number readers seeking simultaneous acquisition of the lock. All readers that have joined the C-SNZI structure share concurrent acquisition, and additional readers may continue to join until the structure is disabled. The lock may be disabled by a writer, at which time subsequent readers will wait (e.g., in a wait queue) until the lock is again available. The C-SNZI structure may be implemented in a lockword or in reader entries within a wait queue. If implemented in reader entries of a wait queue, the lockword may be omitted, and new readers arriving at the queue may be able join an existing reader entry even if the reader entry is not at the tail of the queue.
Public/Granted literature
- US20100241774A1 SCALABLE READER-WRITER LOCK Public/Granted day:2010-09-23
Information query