Abstract
A reader-writer lock [7] is a widely-used variant of the mu- tual exclusion lock abstraction [10]. It is shared by n readers and m writers, whose accesses of the Critical Section (CS) must satisfy the following requirement: reader processes are allowed to be in the CS simultaneously but each writer pro- cess requires exclusive access. We study the (worst-case) re- mote memory reference (RMR) complexity of reader-writer locks in the cache-coherent (CC) read/write model [2]. The tight logarithmic RMRs lower bound on mutual ex- clusion locks [6, 11] implies an (logm) lower bound on the RMR complexity of writers. But how does the RMR com- plexity of reader-writer locks depend on n, the number of readers? This is the question that we address in this work. We establish an ω (log n) RMR complexity lower bound that holds even for single-writer reader-writer locks. It is de- rived from the following complexity tradeoff that we prove: if the number of RMRs incurred by the entry section of the writer is O(f(n)), then the RMR complexity of the reader's exit section is ω (log n/f(n)). The tradeoff holds even if pro- cesses may use the compare-and-swap (CAS) operation in addition to reads and writes. We present a family of reader- writer lock algorithms that establishes that the tradeoff is asymptotically tight for any function f(n).
Original language | American English |
---|---|
Title of host publication | PODC 2016 - Proceedings of the 2016 ACM Symposium on Principles of Distributed Computing |
Pages | 315-324 |
Number of pages | 10 |
Volume | 25-28 July |
ISBN (Electronic) | 9781450339643 |
DOIs | |
State | Published - 25 Jul 2016 |
Event | 35th ACM Symposium on Principles of Distributed Computing, PODC 2016 - Chicago, United States Duration: 25 Jul 2016 → 28 Jul 2016 |
Conference
Conference | 35th ACM Symposium on Principles of Distributed Computing, PODC 2016 |
---|---|
Country/Territory | United States |
City | Chicago |
Period | 25/07/16 → 28/07/16 |
Keywords
- Compare and swap
- Reader-writer lock
- Remote memory references
All Science Journal Classification (ASJC) codes
- Software
- Hardware and Architecture
- Computer Networks and Communications