read–write conflict
In computer science, in the field of databases, read–write conflict, also known as unrepeatable reads, is a computational anomaly associated with interleaved execution of transactions.[src] Specifically, a read–write conflict occurs when a "transaction requests to read an entity for which an unclosed transaction has already made a write request." Given a schedule S : S = \begin{bmatrix} T1 & T2 \\ R(A) & \\ & R(A) \\ & W(A)\\ & Com.[src] \\ R(A) & \\ W(A) & \\ Com.[src] & \end{bmatrix} In this example, T1 has read the original value of A, and is waiting for T2 to finish.[src] T2 also reads the original value of A, overwrites A, and commits.[src] However, when T1 reads from A, it discovers two different versions of A, and T1 would be forced to abort, because T1 would not know what to do.[src] This is an unrepeatable read.[src] This could never occur in a serial schedule, in which each transaction executes in its entirety before another begins.[src] Strict two-phase locking (Strict 2PL) or Serializable Snapshot Isolation (SSI) prevent this conflict.[src]
In computer science, in the field of databases, read–write conflict, also known as unrepeatable reads, is a computational anomaly associated with interleaved execution of transactions.[src] Specifically, a read–write conflict occurs when a "transaction requests to read an entity for which an unclosed transaction has already made a write request." Given a schedule S S = \begin{bmatrix} T1 & T2 \\ R(A) & \\ & R(A) \\ & W(A)\\ & Com.[src] \\ R(A) & \\ W(A) & \\ Com.[src] & \end{bmatrix} In this example, T1 has read the original value of A, and is waiting for T2 to finish.[src] T2 also reads the original value of A, overwrites A, and commits.[src] However, when T1 reads from A, it discovers two different versions of A, and T1 would be forced to abort, because T1 would not know what to do.[src] This is an unrepeatable read.[src] This could never occur in a serial schedule, in which each transaction executes in its entirety before another begins.[src] Strict two-phase locking (Strict 2PL) or Serializable Snapshot Isolation (SSI) prevent this conflict.[src] == Real-world example== Alice and Bob are using a website to book tickets for a specific show.[src] Only one ticket is left for the specific show.[src] Alice signs on first to see that only one ticket is left, and finds it expensive.[src] Alice takes time to decide.[src] Bob signs on and also finds one ticket left, and orders it instantly.[src] Bob purchases and logs off.[src] Alice decides to buy a ticket, to find there are no tickets.[src] This is a typical read–write conflict situation.[src]
26 sentences · 26 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"read–write conflict." encyclopegia.org, 2025, https://encyclopegia.org/wiki/read-write-conflict. Accessed 06 December 2026.
Chicago
"read–write conflict." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/read-write-conflict.
APA
encyclopegia.org. (2025). read–write conflict. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/read-write-conflict
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON