Reader-writer lock
A lock mechanism that allows many readers simultaneously but only one writer at a time.
Many applications read from shared data a thousand times more often than they write. A regular mutex forces readers into queue, wasting throughput. A reader-writer lock solves this by maintaining two lock classes: a shared lock for readers (many can hold it) and an exclusive lock for writers. A reader only needs the shared lock; a writer needs the exclusive lock, which blocks both other writers and all readers.
The catch is implementation complexity and potential writer starvation if reads never cease. Modern code often prefers optimistic locking or lock-free structures, but reader-writer locks exist in most standard libraries (C++ `shared_mutex`, Java `ReadWriteLock`).