{
  "status": "shipping",
  "advantages": [
    {
      "text": "Clients can treat each operation as one instantaneous step and reuse the sequential specification of the object when reasoning about concurrent use.",
      "citationIds": [
        "herlihy-wing"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Checking whether a single run is linearizable is NP-complete in general, with a worst-case search space of O(N!) in the run length, so test tools depend on pruning.",
      "citationIds": [
        "p-compositionality"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-28",
  "slug": "linearizability",
  "term": "Linearizability",
  "aliases": [
    "Linearizable consistency"
  ],
  "definition": "Linearizability requires concurrent operations on an object to behave as a legal sequential execution that preserves the real-time order of non-overlapping operations.",
  "note": "Each completed operation can be placed at a point between invocation and response. Retained pending calls also preserve real-time order in the completed extension. [linearizability-typo] An overlapping write may finish before a read responds without having to precede that read in the legal order. [herlihy-wing] Separate linearizable reads and writes do not make a client's read-modify-write sequence atomic. Persistence across failures needs an explicit recovery contract.\n\nThe property is local: a history is linearizable if and only if its restriction to each object is linearizable, so objects can be implemented and verified independently. Its specification is nonblocking: a pending total operation has a legal response without completing another pending operation. An implementation may nevertheless block or deadlock; linearizability alone does not guarantee wait-free progress. Sequential consistency drops the real-time order and is not local, and serializability is neither local nor nonblocking. [herlihy-wing]\n\nTesting a recorded run means searching for a legal order of its operations. Splitting a set history by key applies the locality idea inside one object. On histories of 560,000 call and return entries from 4 threads, a key-partitioned checker averaged under 7 s and 401 MiB on two benchmarks where cache-pruned search averaged 81 s and 94 s at 678 MiB. [p-compositionality]",
  "related": [
    "durable-linearizability",
    "serializability",
    "read-your-writes",
    "monotonic-reads",
    "compare-and-swap",
    "quorum-intersection",
    "read-atomic-isolation",
    "fractured-read",
    "snapshot-isolation",
    "session-guarantees",
    "sequential-consistency",
    "strict-serializability",
    "safe-register",
    "regular-register",
    "raft",
    "tango",
    "scalog",
    "gryff",
    "pineapple",
    "hermes-replication",
    "safety-property",
    "strict-linearizability",
    "atomic-register"
  ],
  "citations": [
    {
      "id": "herlihy-wing",
      "title": "Herlihy and Wing. Linearizability: A Correctness Condition for Concurrent Objects. ACM TOPLAS 12(3), 1990, sections 2.2 and 3.1 to 3.3.",
      "url": "https://www.cs.cmu.edu/~wing/publications/HerlihyWing90.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "etcd-guarantees",
      "title": "etcd v3.6 API guarantees: durability, strict serializability and operation completion.",
      "url": "https://etcd.io/docs/v3.6/learning/api_guarantees/",
      "accessed": "2026-10-12"
    },
    {
      "id": "hesela-consistency",
      "title": "Storage consistency: ordering is not a transaction or a durability promise",
      "url": "https://hesela.com/analyses/storage-consistency-ordering/",
      "accessed": "2026-10-12"
    },
    {
      "id": "p-compositionality",
      "title": "Horn and Kroening. Faster Linearizability Checking via P-Compositionality. FORTE 2015, arXiv 1504.00204, sections 1 and 5.",
      "url": "https://arxiv.org/abs/1504.00204",
      "accessed": "2026-10-23"
    },
    {
      "id": "linearizability-typo",
      "title": "Sela, Herlihy and Petrank. Linearizability: A Typo. arXiv:2105.06737v2 (2021), sections 3.1 and 4.",
      "url": "https://arxiv.org/pdf/2105.06737v2",
      "accessed": "2026-11-28"
    }
  ],
  "provenance": [
    "herlihy-wing read 2026-10-23, sections 2.2 and 3.1 to 3.3, for the definition, locality, the nonblocking theorem and the comparison with other conditions.",
    "p-compositionality read 2026-10-23, sections 1 and 5.2, for complexity, history sizes, run times and memory figures.",
    "A companion analysis on ordering and durability is listed but not used in prose.",
    "Herlihy and Wing section 3.2 re-read 2026-11-16: Theorem 2 concerns a legal history extension, not implementation progress."
  ]
}
