Search engine for discovering works of Art, research articles, and books related to Art and Culture
ShareThis
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...
PENGEMBANGAN PRODUK BAKERY DAN COOKIES BERBASIS EMPON-EMPON PADA UMKM CV. RAHARJO PUTRO (AMELIA BAKERY DAN COOKIES)
PENGEMBANGAN PRODUK BAKERY DAN COOKIES BERBASIS EMPON-EMPON PADA UMKM CV. RAHARJO PUTRO (AMELIA BAKERY DAN COOKIES)
ABSTRAKTanaman empon-empon merupakan tanaman yang banyak tumbuh di Indonesia, akan tetapi pemanfaatan tanaman empon-empon masih sangat terbatas. Kebanyakan masyarakat menjual produ...
PENERAPAN DATA MINING PADA PENJUALAN TAN’S BAKERY MENGGUNAKAN ALGORITMA APRIORI
PENERAPAN DATA MINING PADA PENJUALAN TAN’S BAKERY MENGGUNAKAN ALGORITMA APRIORI
ABSTRACT PT.Tan's Bakery is a  manufacture company of food that provides a variety of bread products(Bakery) and cakes (Pastry) to supply the needs of Hotels, Villas, and Restauran...
Who Cares for Black Women in Health and Health Care
Who Cares for Black Women in Health and Health Care
Black women are often at the center of health disparities research. Black women face sociological, psychological, environmental, and political barriers to health and health care th...
Critical Success Factors Study for Taiwan Bakery Shops
Critical Success Factors Study for Taiwan Bakery Shops
Abstract Bakery products are a must-have food for many people every day. According to the survey, the annual global bakery market exceeds 300 billion US dollars, how to stand out ...
The Black Mass as Play: Dennis Wheatley's The Devil Rides Out
The Black Mass as Play: Dennis Wheatley's The Devil Rides Out
Literature—at least serious literature—is something that we work at. This is especially true within the academy. Literature departments are places where workers labour over texts c...
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...
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...

Back to Top