Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6226

Atomic Operation

Atomic Operation
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-28

Loading revision record…

Summary

Linearizability, also known as atomic consistency or strict consistency, refers to a model in distributed systems and concurrent programming that ensures all operations appear to take effect instantaneously at some point between their invocation and response, and that the overall order of operations respects a global real-time ordering, as if a single-core processor were handling all requests.

Definition

Linearizability, also known as atomic consistency or strict consistency, refers to a model in distributed systems and concurrent programming that ensures all operations appear to take effect instantaneously at some point between their invocation and response, and that the overall order of operations respects a global real-time ordering, as if a single-core processor were handling all requests.

How to use

Linearizability, also known as atomic consistency or strict consistency, refers to a model in distributed systems and concurrent programming that ensures all operations appear to take effect instantaneously at some point between their invocation and response, and that the overall order of operations respects a global real-time ordering, as if a single-core processor were handling all requests.

Mechanism

Database transactions guarantee atomicity (the 'A' in ACID) to ensure operations are indivisible: either all changes are committed or all are rolled back, avoiding the system being left in a partially completed intermediate state that could cause data corruption.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Bank transfers must ensure that 'debit' and 'credit' either both succeed or both do not occur, otherwise funds could be lost.

Common pitfalls

  • Assuming that 'fast' equals 'atomic'; or treating multi-step operations as atomic while leaving intermediate states.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E7%BA%BF%E6%80%A7%E4%B8%80%E8%87%B4%E6%80%A7ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS