Title
Mutual exclusion as a matter of priority.
Abstract
A new approach to the study and analysis of Mutual Exclusion (ME) algorithms is presented, based on identifying the priority relation that the ME algorithm constructs. It is argued that by analyzing how a process detects that it has priority over all other processes, ME algorithms can be better understood and improved. The approach is illustrated by applying it to Lamport's celebrated Bakery algorithm in the safe register SWMR model. By analyzing how Bakery established and detects priority, cases in which the Bakery algorithm causes processes to block unnecessarily are identified. Namely, a process that already knows that it has priority over another process is made to perform reads and wait on registers of the other process. An optimized version of the Bakery algorithm, called Boulangerie, is proposed, and is shown to be free of any unnecessary blocking. A second contribution of the approach is obtaining a clear explanation for how the Bakery algorithm uses reads from safe registers to detect that a process has priority. Our analysis provides more insight into the workings of the Bakery algorithm than is obtained by other proofs of its correctness.
Year
DOI
Venue
2018
10.1016/j.tcs.2016.12.015
Theoretical Computer Science
Keywords
Field
DocType
Mutual exclusion,Bakery algorithm,Asynchronous computing,Safe registers
Discrete mathematics,Lamport's bakery algorithm,Computer science,Correctness,Algorithm,Theoretical computer science,Mathematical proof,Priority inheritance,Mutual exclusion
Journal
Volume
ISSN
Citations 
751
0304-3975
0
PageRank 
References 
Authors
0.34
10
2
Name
Order
Citations
PageRank
Yoram Moses12120417.71
Katia Patkin200.34