What is Reader-writer lock?
A lock that admits any number of readers together but only one writer at a time, excluding everyone else while writing.
Field: Multicore & Synchronization
A lock that admits any number of readers together but only one writer at a time, excluding everyone else while writing.
Field: Multicore & Synchronization
Concurrent reads cannot corrupt data, so a reader-writer lock lets readers run together and makes only writers exclusive.
What is a characteristic of a reader-writer lock?ABA problem Acquire-release semantics Atomic instruction Barrier synchronization Bus snooping Compare-and-swap Condition variable Critical section Data race Deadlock