encyclopegia.org

read-modify-write

In computer science, read–modify–write is a class of atomic operations (such as test-and-set, fetch-and-add, and compare-and-swap) that both read a memory location and write a new value into it simultaneously, either with a completely new value or some function of the previous value. These operations prevent race conditions in multi-threaded applications. Typically they are used to implement mutexes or semaphores. These atomic operations are also heavily used in non-blocking synchronization. Read–modify–write instructions often produce unexpected results when used on I/O devices, as a write operation may not affect the same internal register that would be accessed in a read operation. This term is also associated with RAID levels that perform actual write operations as atomic read–modify–write sequences. Such RAID levels include RAID 4, RAID 5 and RAID 6.

References

No reference rows published for this article.

Cite this article

MLA

"read-modify-write." encyclopegia.org, 2026, https://encyclopegia.org/wiki/read-modify-write. Accessed 24 November 2026.

Chicago

"read-modify-write." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/read-modify-write.

APA

encyclopegia.org. (2026). read-modify-write. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/read-modify-write

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
P279Q513932Wikidata
P1269Q9135Wikidata
P636637918660Wikidata
P646/m/0dtz4tWikidata

Related articles

Erik Read

stub · references available

Gardner Read

stub · references available

George Read

stub · references available

Read-write memory

stub · references available

James Read

stub · references available

Mark Read

stub · references available

write endurance

stub · references available

Read It and Weep

stub · references available
CC BY-SA 4.0 · tier1-factual · https://en.wikipedia.org/w/index.php?oldid=1360580985 · 0.55 · snapshot read-modify-write-186042-d3eb13ef2f58cf5c · QID Q1593306

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.