Linearization Points and Concurrent Histories

Place each completed operation at a logical instant within its interval and check that the result obeys a sequential specification.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Preserve real-time order between nonoverlapping calls
  2. An atomic update can supply a proof point

Preserve real-time order between nonoverlapping calls

Each call has an invocation and a response. If one finishes before another starts, its abstract effect must come earlier. Overlapping calls can often be ordered either way if their results allow it. For a counter initially zero, two overlapping increment-and-return operations giving results one and two can be explained by ordering the first-result operation before the second. If an operation returning two finished before the other began, those results would not fit the same specification.

An atomic update can supply a proof point

For a compare-and-swap counter, the successful change is a natural instant for increment. More complex structures can require helping or a proof through histories rather than one fixed instruction per method. Compare-and-swap supplies the atomic step in the example. Advanced linearizability testing checks whether recorded calls admit a legal ordering.[1][2]

References

  1. Maurice P. Herlihy and Jeannette M. Wing, Linearizability: A Correctness Condition for Concurrent Objects ↩
  2. Maurice Herlihy and Nir Shavit, The Art of Multiprocessor Programming ↩