[Paper Review] Process-Algebraic Models of Multi-Writer Multi-Reader Non-Atomic Registers
This paper presents process-algebraic models of multi-writer multi-reader (MWMR) non-atomic registers—safe, regular, and atomic—using the mCRL2 formalism to enable model checking of mutual exclusion algorithms under relaxed atomicity. The authors demonstrate that several widely cited algorithms, including variants of Peterson’s and Szymanski’s, fail to guarantee mutual exclusion under safe or regular register semantics, contradicting prior claims in the literature.
We present process-algebraic models of multi-writer multi-reader safe, regular and atomic registers. We establish the relationship between our models and alternative versions presented in the literature. We use our models to formally analyse by model checking to what extent several well-known mutual exclusion algorithms are robust for relaxed atomicity requirements. Our analyses refute correctness claims made about some of these algorithms in the literature.
Motivation & Objective
- To develop formal, machine-checkable models of MWMR non-atomic registers (safe, regular, atomic) for use in model checking.
- To investigate the robustness of mutual exclusion algorithms under relaxed atomicity assumptions, particularly when registers are not atomic.
- To formally verify whether well-known mutual exclusion algorithms remain correct when implemented with non-atomic registers, challenging prior correctness claims.
- To establish formal relationships between MWMR register models and existing SWMR register models in the literature.
- To identify and correct incorrect assumptions in prior algorithmic claims about resilience to non-atomic register behavior.
Proposed method
- Formalizing MWMR safe, regular, and atomic registers using process algebra within the mCRL2 framework, enabling explicit-state model checking.
- Defining register behavior through operational semantics that capture overlapping read/write operations and their outcomes.
- Establishing formal correspondence between the proposed MWMR models and existing SWMR register models (e.g., Lamport’s safe and regular registers).
- Comparing the proposed MWMR regular register model with four alternative variants from prior work, identifying key differences in behavior.
- Applying model checking to verify mutual exclusion and critical section reachability in well-known mutual exclusion algorithms under non-atomic register semantics.
- Using mCRL2 to simulate and verify algorithm behavior under various register models, including safe and regular registers.
Experimental results
Research questions
- RQ1To what extent do mutual exclusion algorithms remain correct when implemented with non-atomic MWMR registers instead of atomic ones?
- RQ2Do the claimed robustness properties of certain mutual exclusion algorithms under non-atomic registers hold under formal verification?
- RQ3How do different formalizations of MWMR regular registers compare in terms of behavioral fidelity and model-checking outcomes?
- RQ4Can model checking with process-algebraic register models expose flaws in correctness claims made in the literature?
- RQ5What role does register implementation detail (e.g., write sequence) play in the correctness of complex algorithms like Lamport’s 3-bit algorithm?
Key findings
- Peterson’s algorithm does not guarantee mutual exclusion when the turn register is only safe, contradicting prior claims.
- A variant of Peterson’s algorithm presented in [4] is correct under safe registers, but the variant in [28] fails under regular registers despite a claim of correctness.
- Several algorithms proposed in [29, 30] do not guarantee mutual exclusion under regular registers, challenging claims about immunity to flickering bits during writes.
- Lamport’s 3-bit algorithm depends critically on the implementation of a complex statement; its mutual exclusion property is not guaranteed under all interpretations.
- Aravind’s BLRU, Dijkstra’s, Dekker’s, and Knuth’s algorithms are confirmed to guarantee mutual exclusion even with safe registers.
- The analysis reveals that model checking with non-atomic register models can uncover flaws in widely accepted algorithms, especially when atomicity assumptions are relaxed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.