Date of Award
6-2-2011
Document Type
Thesis (Undergraduate)
Department or Program
Department of Computer Science
First Advisor
Prasad Jayanti
Abstract
The concurrent reader-writer problem (Courtois, 1971) involves two classes of processes: readers and writers, both of which wish to access a shared resource. Many readers can access the shared resource at the same time. However, if a writer is accessing the resource, no readers or other writers can access the resource at the same time. In the reader-priority version of the problem, readers are prioritized over writers when processes from both classes are trying to access the shared resource. Previous research (Bhatt, 2010) showed a reader-priority constant-RMR multi-reader, multi-writer algorithm for Cache-Coherent (CC) systems. However, this algorithm does not allow for readers or writers to abort, which allows readers and writers waiting for the resource to stop trying to access the resource and to quickly return to the Remainder Section of the code, where the process performs tasks unrelated to the shared resource. This thesis presents an abortable constant-RMR reader-priority multi-reader single-writer algorithm for CC systems. Additionally, we show how to generalize the algorithm into a multi-reader multi-writer algorithm using any given abortable mutual exclusion algorithm. The algorithm is proven rigorously by invariants and tested using a system of mathematical specification and model-checking tools (PlusCal/TLA+/TLC).
Recommended Citation
Zheng, Nan, "Constant-RMR Abortable Reader-Priority Reader-Writer Algorithm" (2011). Dartmouth College Undergraduate Theses. 71.
https://digitalcommons.dartmouth.edu/senior_theses/71
Comments
Originally posted in the Dartmouth College Computer Science Technical Report Series, number TR2011-685.