OS Concepts · Chapter 6
Any number of Readers may access the data concurrently, but a Writer needs exclusive access.
The first reader locks wrt (blocking writers); the last reader to leave unlocks it. Writers always get exclusive access via wrt alone.