Javascript must be enabled to continue!
Black-White Bakery Algorithm Made RW-Safe
View through CrossRef
Lamport’s Bakery algorithm is a well-known, simple, and elegant solution to the mutual exclusion problem for N ≥ 2 concurrent/parallel processes. However, the algorithm generates an unbounded number of tickets, even when only 2 processes are arbitrated. Various proposals in the literature were introduced to bound the number of tickets. Anyway, almost all these proposals prove to be correct when operated with atomic registers (AR) only. They become incorrect when working with non-atomic registers (NAR), as may occur in embedded hardware platforms with multi-port memory and relaxed memory-bus control, such as microcontrollers, FPGA-based systems, or specialized network devices. A notable solution with bounded tickets is Taubenfeld’s Black-White Bakery (BWB) algorithm. BWB relies on tickets which are couples <number,mycolor> where mycolor can be Black or White and number ranges in [0, N]. BWB, too, was confirmed, through informal reasoning, it is correct with AR only. The original contribution of this paper is a reformulation of BWB, which is formally modelled and exhaustively verified by timed automata in the Uppaal toolbox. In the reformulation, a ticket’s couple is coded as a single integer, and decoded and processed according to the BWB logic. The reformulated BWB remains fully correct with AR regardless of the number N of processes, but it is also correct with NAR for N = 2 processes. As a further original contribution, the paper demonstrates that the BWB version for 2 processes can be embedded in a general, state-of-the-art solution, based on a binary tournament tree (TT), to become AR/NAR correct, that is, RW-safe, for any number of processes. However, due to model complexity, the correctness of the TT versions of BWB, that is, based on atomic and non-atomic registers, is mainly studied by stochastic simulation of the formal model reduced to actors in Java.
Title: Black-White Bakery Algorithm Made RW-Safe
Description:
Lamport’s Bakery algorithm is a well-known, simple, and elegant solution to the mutual exclusion problem for N ≥ 2 concurrent/parallel processes.
However, the algorithm generates an unbounded number of tickets, even when only 2 processes are arbitrated.
Various proposals in the literature were introduced to bound the number of tickets.
Anyway, almost all these proposals prove to be correct when operated with atomic registers (AR) only.
They become incorrect when working with non-atomic registers (NAR), as may occur in embedded hardware platforms with multi-port memory and relaxed memory-bus control, such as microcontrollers, FPGA-based systems, or specialized network devices.
A notable solution with bounded tickets is Taubenfeld’s Black-White Bakery (BWB) algorithm.
BWB relies on tickets which are couples <number,mycolor> where mycolor can be Black or White and number ranges in [0, N].
BWB, too, was confirmed, through informal reasoning, it is correct with AR only.
The original contribution of this paper is a reformulation of BWB, which is formally modelled and exhaustively verified by timed automata in the Uppaal toolbox.
In the reformulation, a ticket’s couple is coded as a single integer, and decoded and processed according to the BWB logic.
The reformulated BWB remains fully correct with AR regardless of the number N of processes, but it is also correct with NAR for N = 2 processes.
As a further original contribution, the paper demonstrates that the BWB version for 2 processes can be embedded in a general, state-of-the-art solution, based on a binary tournament tree (TT), to become AR/NAR correct, that is, RW-safe, for any number of processes.
However, due to model complexity, the correctness of the TT versions of BWB, that is, based on atomic and non-atomic registers, is mainly studied by stochastic simulation of the formal model reduced to actors in Java.
Related Results
On Flores Island, do "ape-men" still exist? https://www.sapiens.org/biology/flores-island-ape-men/
On Flores Island, do "ape-men" still exist? https://www.sapiens.org/biology/flores-island-ape-men/
<span style="font-size:11pt"><span style="background:#f9f9f4"><span style="line-height:normal"><span style="font-family:Calibri,sans-serif"><b><spa...
Analisis Pengembangan Produk Roti Holland Bakery Dalam Menghadapi Persaingan Bisnis
Analisis Pengembangan Produk Roti Holland Bakery Dalam Menghadapi Persaingan Bisnis
Penelitian ini bertujuan untuk untuk mengetahui bagaimana proses pengembangan produk yang dilakukan Holland bakery. Metodologi penelitian skripsi ini menggunakan pendekatan...
Black Wax(ing): On Gil Scott-Heron and the Walking Interlude
Black Wax(ing): On Gil Scott-Heron and the Walking Interlude
The film opens in an unidentified wax museum. The camera pans from right to left, zooming in on key Black historical figures who have been memorialized in wax. W.E.B. Du Bois, Mari...
Bakery and Confectionery Technology
Bakery and Confectionery Technology
"This book “Bakery and Confectionery Technology” gives a concise explanation of the principles, science, methods and processes involved in the development of various bakery product...
Assessment of Fungi Associated with Bakery Products in Port Harcourt Metropolis
Assessment of Fungi Associated with Bakery Products in Port Harcourt Metropolis
Bakery products such as bread, cakes, etc are staple foods consumed by both the poor and rich. Bread and other bakery products are subject to fungal contamination. This study is ai...
Mix En Meng It Op: Emile YX?'s Alternative Race and Language Politics in South African Hip-Hop
Mix En Meng It Op: Emile YX?'s Alternative Race and Language Politics in South African Hip-Hop
This paper explores South African hip-hop activist Emile YX?'s work to suggest that he presents an alternative take on mainstream US and South African hip-hop. While it is arguable...
Perancangan dan Implementasi Strategi Pemasaran Digital Pada UMKM Harum Bakery
Perancangan dan Implementasi Strategi Pemasaran Digital Pada UMKM Harum Bakery
The aim of implementing this service program is to help solve the problems faced by MSMES in Batam City, especially in digital marketing. The MSMEs targeted are Harum Bakery which ...
Late Middle Kingdom Temple Bakery at South Abydos
Late Middle Kingdom Temple Bakery at South Abydos
Recent excavations have exposed the original bakery belonging to the mortuary temple of Senwosret III at South Abydos. Initially founded as a six-chambered bui...

