IT lexicon › Programming › Write Serialization

Write Serialization

Programming På svenska → Updated: 2026-11-16

The guarantee that all writes to the same address are observed in the same order by all threads, maintained by coherence.

If thread A writes 1 then 2 to x, and thread B reads x twice, B might see (1,2) or (1,1) but never (2,1). This is not automatic — a processor needs cache-coherence bus protocols to guarantee it. Without it, a thread could observe later values before earlier ones, breaking logic. That is where atomic operations, memory barriers, and locks matter.

← Back to the lexicon