Title
Under the Hood of the Bakery Algorithm: 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
2015
10.1007/978-3-319-25258-2_28
SIROCCO 2015 Post-Proceedings of the 22nd International Colloquium on Structural Information and Communication Complexity - Volume 9439
Field
DocType
Citations 
Lamport's bakery algorithm,Computer science,Correctness,Algorithm,Theoretical computer science,Mathematical proof,Mutual exclusion
Conference
1
PageRank 
References 
Authors
0.39
11
2
Name
Order
Citations
PageRank
Yoram Moses12120417.71
katia patkin210.39