5 questions to test your understanding
A database uses reader-preference locks. Traffic is 95% reads and 5% writes. Which problem is most likely to occur?
What is the minimum information a fair readers-writers solution must track that a simple reader-preference solution does not?
In a reader-preference solution, allowing multiple readers to access data simultaneously is safe because reads do not modify shared state.
Writer-preference solutions prevent writer starvation and should therefore be preferred over reader-preference solutions in most real-world systems.
Why does a fair readers-writers solution batch waiting readers together rather than serving them one at a time in strict FIFO order?