Eventual Wait-Free Synchronization

Tong Che

Abstract

Eventually linearizable objects are novel shared memory programming constructs introduced as an analogy to eventual consistency in message-passing systems. However, their behaviors in shared memory systems are so mysterious that very little general theoretical properties of them is known. In this paper, we lay the theoretical foundation of the study of eventually linearizable objects. We prove that the n-process eventually linearizable fetch-and-cons (n-FAC) object is universal and can be used to classify the eventually linearizable objects. In particular, we define the concept of eventual consensus number of an abstract data type and prove that the eventual consensus number can be used as a good characterization of the synchronization power of eventual objects. Thus we got a complete hierarchy of eventually linearizable objects, as a perfect analogy of the consensus hierarchy. In this way, the synchronization power of eventual linearizability become much more well understood.

Introduction

In concurrent computing, the ideal standard for shared objects is linearizability—the requirement that every operation appears to take effect instantaneously at some point between its invocation and response. When combined with wait-freedom (the guarantee that every process completes its operation in a finite number of steps regardless of others), we achieve highly resilient systems. However, implementing wait-free linearizable objects is computationally expensive and often impossible for complex data types using simple hardware primitives.

To bridge this gap, researchers have introduced eventually linearizable objects. Inspired by the "eventual consistency" models of message-passing systems, these objects allow for a period of unpredictable behavior or "chaos" before eventually stabilizing into a state that behaves correctly according to linearizable semantics. While promising, the theoretical limits of these objects remained poorly understood until now. This paper establishes a formal framework to rank the synchronization power of eventually linearizable objects, mirroring Maurice Herlihy’s classical consensus hierarchy.

The Eventual Consensus Hierarchy

In classical distributed computing, the "Consensus" object is the benchmark for synchronization power. However, this paper reveals a Consensus Paradox: in the world of eventual linearizability, Consensus becomes trivial. Because an object only needs to eventually behave correctly, one can implement an eventually linearizable consensus object using only basic read/write registers—a feat impossible in the strict linearizable world.

Since Consensus is no longer a meaningful metric for power in this context, the author identifies the Fetch-And-Cons (FAC) object as the new universal benchmark. An FAC object maintains a list, allowing processes to append a value and return the current state of the list. The paper introduces the Eventual Consensus Number ($e^r_m$): the maximum number of processes that can implement a wait-free eventually linearizable FAC object using a given data type $T$ and standard registers.

Theoretical Framework and Universality

To analyze these systems, the author utilizes execution trees to map all possible system states. A critical contribution is the definition of stable nodes—specific points in an execution where the system has effectively moved past its initial chaotic phase and stabilized into a linearizable state.

Using this framework, the paper provides a Universal Construction. It proves that if a system can implement an $n$-process eventually linearizable FAC object, that object can be used to implement any other eventually linearizable object for $n$ processes. This establishes FAC as the "gold standard" for synchronization in eventual systems.

Key Findings and Results

The research yields several significant insights into the nature of shared memory synchronization:

  1. The Hierarchy Bound: A fundamental finding is that the eventual consensus number of a data type is always less than or equal to its classical consensus number ($e^r_m(T) \leq c(T)$). Weakening safety requirements to "eventual" linearizability may make an object easier to implement, but it never grants it more synchronization power than its classical counterpart.
  2. Classification of Primitives:
    • Consensus and Test-and-Set: Both have an $e^r_m$ of 1, meaning they are no more powerful than basic registers in an eventual setting.
  3. Fetch-and-Add (FAA): Has an $e^r_m$ of 2.
  4. Hardness Equivalence: The paper demonstrates that the difficulty of implementing a wait-free eventually linearizable $n$-FAC object from linearizable primitives is equivalent to the difficulty of implementing a standard linearizable $n$-FAC object.

Conclusion

By introducing the eventual consensus hierarchy, this work provides the first comprehensive map of the synchronization power of eventually linearizable objects. While it focuses primarily on deterministic data types and theoretical constructions, it lays the groundwork for more performant, optimized implementations of eventual consistency in shared memory environments. Future research may expand this catalog to non-deterministic types and further explore the practical performance trade-offs of the FAC-based universal construction.

Summary updated

Abstract

Eventually linearizable objects are novel shared memory programming constructs introduced as an analogy to eventual consistency in message-passing systems. However, their behaviors in shared memory systems are so mysterious that very little general theoretical properties of them is known. In this paper, we lay the theoretical foundation of the study of eventually linearizable objects. We prove that the n-process eventually linearizable fetch-and-cons (n-FAC) object is universal and can be used to classify the eventually linearizable objects. In particular, we define the concept of eventual consensus number of an abstract data type and prove that the eventual consensus number can be used as a good characterization of the synchronization power of eventual objects. Thus we got a complete hierarchy of eventually linearizable objects, as a perfect analogy of the consensus hierarchy. In this way, the synchronization power of eventual linearizability become much more well understood.
BibTeX
@misc{che2015eventual,
  author = {Tong Che},
  title = {{Eventual Wait-Free Synchronization}},
  year = {2015},
  eprint = {1512.08258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.08258},
}
Figure