3 ms·
No, a read write lock is a lock designed so that multiple readers can hold the lock, but only a single writer can hold the lock. That way readers know no write
by stonemetal 15y ago
No, a read write lock is a lock designed so that multiple readers can hold the lock, but only a single writer can hold the lock. That way readers know no write is taking place(as many reads as you like can take place), and writers know they have exclusive access.
- e1ven 15y agoYes, but keep in mind that while the write lock is in place, reads are blocked, not just writes.