Unit 5 of 14 · about 4 hours · derive

Linearizability as a history property and sequential consistency

The Systems unit on consistency models and conflict resolution classified simple stale reads. Here the new work is the history definition that a checker must implement, including why all reads must fit one order rather than each choosing a convenient replica view.

You'll be able to

  • Derive a legal sequential witness or an ordering contradiction for a register history.
  • Distinguish process-order constraints from real-time precedence.
  • Explain per-object composition and the treatment of incomplete operations.

Covers

Linearizability as a history propertySequential consistency
1

Read

In this order, only the parts listed

0 of 3 done

  1. Herlihy and Wing (1990): definition and localityLinearizability: A Correctness Condition for Concurrent Objects (Herlihy and Wing, 1990)

    Sections 1 through 3.1, printed pp. 463 to 471; concentrate on 2.1 Histories, 2.2 Definition of Linearizability and Theorem 1 in 3.1 Locality

    Stop before Section 3.2. Translate the queue examples into ordering constraints; do not implement a concurrent queue.

  2. Jepsen: sequential consistencyJepsen Consistency Models

    Sequential Consistency and Formally (page read 2026-10-15)

  3. MIT 6.5840 Spring 2026, Lecture 8: Consistency, LinearizabilityMIT 6.5840 - Consistency, Linearizability and Replication Papers

    definition: a history through example 6, including the serial register specification

    Answer each history question before reading its discussion. In example 3, the sentence saying no assignment works for example 2 is a numbering typo: example 2 permits the old read; example 3 is the contradictory history.

2

Focus on

  • Both models need a legal total order that preserves each process's program order. Linearizability also preserves every response-before-invocation edge across processes.
  • An incomplete operation can be completed in an extension or omitted when forming the complete history. Never require its effect to be absent just because its client timed out.
  • Locality lets linearizable object histories compose. It does not turn separate calls into an atomic multi-object transaction.
  • The Systems unit on threads, interleavings and memory consistency taught program order. Do not equate distributed register semantics with a language's relaxed memory model.
Common mistakes · 3
  • Checking each read independently. A collection of individually plausible reads can have no common legal order.
  • Sorting calls by invocation time or server log time and treating that one order as the definition.
  • Claiming that a clean finite history proves the implementation linearizable for all executions.
3

Try it yourself

Closed-book, before checking anything

Start a register at 0, with exactly one write of 1 and one write of 2 by separate clients. Both writes remain pending while reader P reads 1 then 2, and reader Q reads 2 then 1; all four reads complete before either write returns. Derive why no sequentially consistent order exists: P forces the write of 1 before the write of 2, while Q forces the reverse. Then remove Q's reads and give a legal linearization of the remaining history. Separately, consider just a completed write of 1 followed in real time by another client's read of 0, initially 0: explain why sequential consistency can permit that history while linearizability cannot.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Can sequential consistency put a read before another client's already completed write?Answer

    Yes, if it preserves each process's program order and the register specification. Linearizability additionally enforces the cross-process real-time edge.

  2. 2.Why does removing Q make the pending-writes example legal?Answer

    The order write 1, P's read of 1, write 2, P's read of 2 fits all intervals and the object specification. Q supplied the contradictory order.

  3. 3.Is an operation's actual internal execution instant needed to check linearizability?Answer

    No. The observed history needs some legal order with points inside invocation-response intervals. The witness need not identify the implementation's actual instant.

  4. 4.What does the locality theorem not provide for two separately linearizable account registers?Answer

    It does not make a debit and credit across them one atomic transfer. That requires a specification and mechanism for the combined operation or transaction.

5

Practice

  • Cambridge Concurrent and Distributed Systems: Exercise 20

    Michaelmas 2021/22, Section 7.2: Exercise 20 on p. 74 and its execution diagram on p. 75

    First draw real-time and value-order edges. Give a witness or contradiction before consulting the Section 7.2 discussion. This is a paper exercise, not an autograded test.

You're done when

You solve Exercise 20 with explicit ordering constraints and can separate a sequential-consistency witness from a linearizability witness without relying on server internals.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 13 more in the section
  • Linearizability: A Correctness Condition for Concurrent Objects (Herlihy and Wing, 1990)ACM TOPLAS (MIT 6.5840 copy) · required

    Read through Section 3.1, as MIT 6.5840 assigns: histories, real-time order and the definition every history check in this section tests. Linearizability is per object, which is why it composes.

  • MIT 6.5840 - Consistency, Linearizability and Replication PapersMIT PDOS · required

    Use Spring 2026 lectures 8, 12 and 13 plus their Linearizability, Spanner and Chain Replication readings. Write one history question per mechanism and answer it before looking at the discussion material.

  • Jepsen Consistency ModelsJepsen · required

    Use the model hierarchy and history definitions to name the exact contract being checked. Check recorded single-register histories with Knossos, which Maelstrom runs for its lin-kv workload, and never claim a stronger model than the checker covers.

Also in this section