Fair Solution to the Reader-Writer-Problem with Semaphores only
Cite this paper
×
@misc{ballhausen2003fair,
title = {Fair Solution to the Reader-Writer-Problem with Semaphores only},
author = {H. Ballhausen},
year = {2003},
eprint = {cs/0303005},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/cs/0303005}
}
Ballhausen, H. (2003). Fair Solution to the Reader-Writer-Problem with Semaphores only [Preprint]. arXiv. https://doi.org/10.48550/arXiv.cs/0303005
BALLHAUSEN H. Fair Solution to the Reader-Writer-Problem with Semaphores only[EB/OL]. (2003-03-08)[2026-11-29]. https://arxiv.org/abs/cs/0303005.
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.
Post #1 · the paper