arXiv · cs/0303005
Fair Solution to the Reader-Writer-Problem with Semaphores only
Abstract
The reader-writer-problem is a standard problem in concurrent programming. A resource is shared by several processes which need either inclusive reading or exclusive writing access. The known solutions to this problem typically involve a number of global counters and queues. Here a very simple algorithm is presented which needs only two semaphores for synchronisation and no other global objects. The approach yields a fair solution without starving.
Explore related subjects
Keep this discovery
H. Ballhausen. 2003-03-08. Fair Solution to the Reader-Writer-Problem with Semaphores only. https://arxiv.org/abs/cs/0303005
Cite the original work for its findings. Save a collection to share your selection of sources.