On Register Linearizability and Termination

Vassos Hadzilacos, Xing Hu, Sam Toueg

Introduction

In distributed computing, linearizability is often treated as the gold standard for correctness. It provides the illusion that operations on shared objects occur instantaneously at some point between their invocation and response, effectively making concurrent systems behave like simpler, sequential ones. For deterministic algorithms, linearizable objects are functionally equivalent to atomic ones.

However, recent research has uncovered a critical vulnerability: randomized algorithms—which rely on "coin flips" to break ties or reach consensus—can lose essential properties when moving from atomic to linearizable registers. This paper investigates whether a randomized algorithm can lose the fundamental property of termination. Specifically, can a clever adversary exploit the "timing slack" inherent in linearizability to trap an algorithm in an infinite loop?

Methodology: The Randomized Game

The authors explore this question through a mix of algorithmic construction and formal proof. They design a randomized "game" (Algorithm 1) involving "hosts" and "players." While this algorithm is guaranteed to terminate with probability 1 when using atomic registers, it becomes vulnerable under linearizability.

Phase 2 of the randomized game where processes read and increment registers successively.

The study also introduces Write Strong-Linearizability (WSL), a new consistency model. Unlike "strong linearizability," which requires the order of all operations to be fixed "on-line" (as they occur), WSL only mandates that the order of write operations be fixed irrevocably on-line. The authors provide a wait-free implementation of a WSL Multi-Writer Multi-Reader (MWMR) register and demonstrate that standard linearizable implementations (like those using Lamport clocks) fail to meet this stricter requirement.

Key Insights: The Adversary's "Time Travel"

The core issue with plain linearizability is that the exact "linearization point" of an operation can be decided "off-line" after the execution has concluded. This flexibility allows a "strong adversary" to observe the outcome of a process's coin flip and then "retroactively" decide the order of concurrent writes to ensure the flip does not lead to progress.

The adversary can retroactively choose linearization points (marked with X) to force different outcomes (c=0 or c=1) based on observed execution.

By forcing write orders to be fixed as they occur (WSL), the adversary is compelled to commit to a write order before seeing the outcome of future coin flips. This restores the power of randomization. Interestingly, for Single-Writer Multi-Reader (SWMR) registers, plain linearizability is equivalent to WSL, explaining why many message-passing algorithms (like ABD) remain robust. The gap only emerges in Multi-Writer (MWMR) scenarios.

Key Results and Implications

The paper establishes several landmark findings:

  1. Termination is Fragile: A strong adversary can indeed prevent a randomized algorithm from terminating if it relies on registers that are merely linearizable.
  2. WSL Restores Termination: Write Strongly-Linearizable registers preserve the termination properties of randomized algorithms.
  3. Feasibility: While "strong linearizability" is impossible to implement for MWMR registers using SWMR building blocks, WSL MWMR registers are implementable.
  4. Consistency Hierarchy: The authors establish a clear hierarchy: Atomic > Strong Linearizability > Write Strong-Linearizability > Linearizability.

Conclusion and Future Work

While this work focuses on registers, the concept of "subset-O strong linearizability" could potentially extend to other data types like stacks or queues. A significant open question remains: which existing randomized algorithms in the literature are currently "broken" because they assume atomic behavior while running on MWMR linearizable registers? The authors suggest that many such algorithms might be vulnerable in ways that have yet to be noticed by researchers.

Summary updated

BibTeX
@inproceedings{hadzilacos2021register,
  author = {Vassos Hadzilacos and Xing Hu and Sam Toueg},
  title = {{On Register Linearizability and Termination}},
  booktitle = {PODC},
  year = {2021},
  doi = {10.1145/3465084.3467925},
}
Figure