{
  "status": "unknown",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-28",
  "slug": "atomic-register",
  "term": "Atomic register",
  "aliases": [
    "Linearizable register"
  ],
  "definition": "An atomic register is a read/write object whose concurrent operations admit a common legal sequential order that respects real-time precedence.",
  "note": "Each read returns the latest value in that common order, starting from the specified initial value. Completed-before-invoked operations retain their order; overlapping operations need not follow response order. This is the register case of linearizability. [herlihy-wing]\n\nSingle-writer comparison: when a write changes 0 to 1, two nonoverlapping reads within that write cannot return 1 and then 0, although a regular register permits that history. [lamport-registers]\n\nScope: a separate read followed by a write is not one atomic read-modify-write operation. Multi-key transactions, progress guarantees such as wait-freedom, and persistence after a crash need additional contracts. [herlihy-wing] [lamport-registers]\n\nNo response does not mean no effect. A legal history may complete selected pending calls and omit others. If x starts at 0 and a completed read returns 1 while the only write of 1 remains pending, the explanation must retain that write before the read. A timeout response needs its API's own contract. [herlihy-wing]\n\nA retained pending write must follow reads completed before its invocation. With initial 0, a read returning 1 before the sole W(1) starts has no legal explanation. [linearizability-typo]",
  "related": [
    "safe-register",
    "regular-register",
    "linearizability",
    "compare-and-swap",
    "durable-linearizability",
    "safety-property"
  ],
  "citations": [
    {
      "id": "lamport-registers",
      "title": "Lamport. On Interprocess Communication. Part I p. 2, failure exclusion; Part II section 4, pp. 18-21. SRC report, 1985; journal publication, 1986.",
      "url": "https://lamport.azurewebsites.net/pubs/interprocess.pdf",
      "accessed": "2026-11-28"
    },
    {
      "id": "herlihy-wing",
      "title": "Herlihy and Wing. Linearizability: A Correctness Condition for Concurrent Objects. ACM TOPLAS 12(3), 1990, sections 2.2-2.3, 3.2, 5.1 and 6.2.",
      "url": "https://cs.brown.edu/people/mph/HerlihyW90/p463-herlihy.pdf",
      "accessed": "2026-11-28"
    },
    {
      "id": "hesela-registers",
      "title": "Hesela: constructed read histories for safe, regular and atomic registers.",
      "url": "https://hesela.com/analyses/storage-consistency-ordering/#register-contracts",
      "accessed": "2026-11-28"
    },
    {
      "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": [
    "The definition follows the read/write-object specification of Herlihy and Wing; the safe/regular comparison uses Lamport's finite-valued, single-writer scope. No implementation, performance or recovery result is asserted."
  ]
}
