Skip to content

Linearizability

Test whether a concurrent object's operation history has a legal sequential explanation that preserves the real-time order of nonoverlapping calls.

Version
v1 · 2026-10-07 · History
Domain-specific #
13931
Domain group
Applied Sciences & Engineering
Origin domain
Computer Science & Software Engineering
Subdomain
Concurrent Objects → Computer Science & Software Engineering
Aliases
Linearizable History

Core Idea

Linearizability asks whether concurrent calls to an object could have happened one at a time in a legal order, while keeping the real-time order of calls that did not overlap. A queue's order must follow its FIFO rules; a register's reads and writes must follow its register rules. Overlapping calls can be placed in either order when the returned results allow it. The test concerns the public call-and-return history, not a particular machine instruction.[1]

When a call has started but has not returned, the formal rule can complete some such calls and omit the rest before judging the history. That does not mean every example needs a pending call.[1]

How would you explain it like I'm…

Looks-Like-Taking-Turns

Imagine lots of kids reaching into one cookie jar at the same time. Linearizability means that afterwards, everything that happened could be explained as if the kids took turns one at a time. Each kid's grab seems to happen at some moment while their hand was reaching. And if one kid finished before another started, the first kid's turn must count as first.

The Looks-Like-Turns Rule

When many parts of a computer use the same thing at once, like a shared counter, things can get confusing. Linearizability is a rule that says the result must look like the actions happened one at a time in some order. If one action finished before another started, it must come first in that order. If two actions overlapped, either order is fine, as long as the result makes sense. It's like each action takes effect at one instant somewhere between when it started and when it finished.

Atomic-Looking Concurrent Correctness

Linearizability is a correctness condition for shared objects used by many threads at once. Each operation has an invocation (when it's called) and a response (when it returns). A history of these events is linearizable if you can reorder the operations into a single sequence that is legal for the object — for example, a queue returns items in the order they were added — while keeping the real-time order of operations that didn't overlap. Overlapping operations can be put in whichever order gives a legal explanation. Informally, each operation seems to take effect at one instant between its call and its return. That instant is just a way of explaining the history; it need not be a specific line of code.

 

Linearizability is a correctness condition for a concurrent object, stated in terms of its history of invocation and response events. A history is linearizable if it can be explained by a legal sequential history — one valid under the object's sequential specification — that preserves the real-time order of non-overlapping operations; overlapping operations may be ordered in whatever way yields a legal explanation. Informally, each completed operation appears to take effect atomically at some point between its invocation and response. That linearization point is a witness that the history condition holds, not necessarily a single fixed instruction in the implementation. Pending operations are handled formally: the history may be extended with responses to some pending invocations, and the remaining incomplete ones are removed before testing equivalence to a legal sequential history. This matters because an operation can already affect other calls before its own caller receives a response, though linearizable histories need not contain pending calls at all.

Scope of Application

The original work applies to shared concurrent objects such as queues and registers. The same history criterion can be used for a networked atomic register when its model matches. Attiya, Bar-Noy and Dolev constructed an atomic single-writer multi-reader register in specified asynchronous, failure-prone networks. Calling that a linearizable-register realization is a cross-paper interpretation of their atomicity contract and Herlihy–Wing's definition, not a phrase taken from their paper.[1][2]

Clarity

Two checks are needed. The proposed sequential order must be legal for the object type, and it must respect a call that finished before another began. A story that explains returned values but reverses completed-before-started operations fails. The imagined instant at which a call takes effect is a way to explain the history; it need not be a fixed compare-and-swap step in every implementation.[1]

Manages Complexity

Once an object's implementation is proved linearizable, clients can use its simpler sequential specification to reason about its behavior. Herlihy and Wing prove a locality result for their concurrent-object model: a system history is linearizable if each object's history is. This does not by itself prove an atomic transaction spanning several objects.[1]

Abstract Reasoning

Record invocations and responses. Mark each pair of operations where one finished before the other started. Handle pending calls according to the formal rule. Then search for an order that satisfies both those time relations and the object's ordinary sequential behavior. One impossible observed history is a counterexample; one possible history does not prove an implementation correct for every execution.[1]

Knowledge Transfer

The method transfers from an in-memory queue to a networked register by keeping the same questions: what is the object specification, what was observed, and can a legal order preserve real time? The implementation evidence does not transfer. The message-passing register result depends on its single-writer multi-reader and network-failure assumptions; it does not certify all replicated stores.[1][2]

Example

In a shared-memory FIFO queue, overlapping enqueue and dequeue calls must have some sequential explanation that returns items in legal queue order while respecting calls that clearly happened earlier. Herlihy and Wing give both accepted and rejected queue histories. The criterion judges those observable histories rather than a generic CAS step.[1]

A different carrier is an atomic register accessed through asynchronous messages. In the Attiya–Bar-Noy–Dolev construction, clients read and write a single-writer multi-reader register under stated failure conditions. Its atomic history contract is a qualified distributed realization of the same legal-order idea; the equivalence to linearizability is an explicit cross-paper inference.[2][1]

Neighborhood in Abstraction Space

Linearizability sits in a sparse region of the domain-specific corpus (95th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

Not to Be Confused With

Sequential consistency can use a legal total order that does not respect real-time precedence. Database serializability concerns transactions with different cross-object commitments. Strong Consistency uses linearizability for the strict replicated-store case, but this entry also covers shared-memory concurrent objects. The reviewed catalog supplied no strict all-instance parent; its V2 DAG records an approved specialist root with no edge.[1][2]

References

[1] Maurice P. Herlihy and Jeannette M. Wing, Linearizability, A Correctness Condition for Concurrent Objects, ACM Transactions on Programming Languages and Systems 12(3), 463–492 (1990); linked title transcribes the printed colon as a comma for citation binding; original full paper, abstract and §2.2 pp.467–470 (formal conditions L1–L2), §3.1 pp.470–471 (Theorem 1 locality), Figures 1–2 pp.464–466 and §4 pp.475–480 (queue histories and implementation). registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h ↩i ↩j

[2] Hagit Attiya, Amotz Bar-Noy and Danny Dolev, Sharing Memory Robustly in Message-Passing Systems, Journal of the ACM 42(1), 124–142 (1995); original full paper, abstract p.124 and §§1, 4–5 on atomic SWMR register emulation. The linearizability relationship in the body is a cross-paper inference, not the authors' label. registry ↩a ↩b ↩c ↩d