encyclopegia.org

Thomas write rule

In computer science, particularly the field of databases, the Thomas write rule is a rule in timestamp-based concurrency control.[src] It can be summarized as ignore outdated writes.[src] It states that, if a more recent transaction has already written the value of an object, then a less recent transaction does not need to perform its write since the more recent one will eventually overwrite it.[src] The Thomas write rule is applied in situations where a predefined logical order is assigned to transactions when they start.[src] For example, a transaction might be assigned a monotonically increasing timestamp when it is created.[src] The rule prevents changes in the order in which the transactions are executed from creating different outputs: The outputs will always be consistent with the predefined logical order.[src] For example, consider a database with 3 variables (A, B, C), and two atomic operations C := A (T1), and C := B (T2).[src] Each transaction involves a read (A or B), and a write (C).[src] The only conflict between these transactions is the write on C.…[src]

In computer science, particularly the field of databases, the Thomas write rule is a rule in timestamp-based concurrency control.[src] It can be summarized as ignore outdated writes.[src] It states that, if a more recent transaction has already written the value of an object, then a less recent transaction does not need to perform its write since the more recent one will eventually overwrite it.[src] The Thomas write rule is applied in situations where a predefined logical order is assigned to transactions when they start.[src] For example, a transaction might be assigned a monotonically increasing timestamp when it is created.[src] The rule prevents changes in the order in which the transactions are executed from creating different outputs: The outputs will always be consistent with the predefined logical order.[src] For example, consider a database with 3 variables (A, B, C), and two atomic operations C := A (T1), and C := B (T2).[src] Each transaction involves a read (A or B), and a write (C).[src] The only conflict between these transactions is the write on C.[src] The following is one possible schedule for the operations of these transactions: \begin{bmatrix} T_1 & T_2 \\ & Read(A) \\ Read(B) & \\ &Write(C) \\ Write(C) & \\ Commit & \\ & Commit \end{bmatrix} \Longleftrightarrow \begin{bmatrix} T_1 & T_2 \\ & Read(A) \\ Read(B) & \\ & Write(C) \\ & \\ Commit & \\ & Commit\\ \end{bmatrix} If (when the transactions are created) T1 is assigned a timestamp that precedes T2 (i.e., according to the logical order, T1 comes first), then only T2's write should be visible.[src] If, however, T1's write is executed after T2's write, then we need a way to detect this and discard the write.[src] One practical approach to this is to label each value with a write timestamp (WTS) that indicates the timestamp of the last transaction to modify the value.[src] Enforcing the Thomas write rule only requires checking to see if the write timestamp of the object is greater than the time stamp of the transaction performing a write.[src] If so, the write is discarded In the example above, if we call TS(T) the timestamp of transaction T, and WTS(O) the write timestamp of object O, then T2's write sets WTS(C) to TS(T2).[src] When T1 tries to write C, it sees that TS(T1) TS(T2)) were to then write to C, it would get TS(T3) > WTS(C), and the write would be allowed.[src] ==References== ©[src]

25 sentences · 25 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Thomas write rule." encyclopegia.org, 2023, https://encyclopegia.org/wiki/thomas-write-rule. Accessed 30 November 2026.

Chicago

"Thomas write rule." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/thomas-write-rule.

APA

encyclopegia.org. (2023). Thomas write rule. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/thomas-write-rule

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

Related articles

Thomas Jefferson

stub · references available

Aloys Thomas Raimund von Harrach

stub · references available

Thomas E. Gaddis

stub · references available

Thomas E. Ackerman

stub · references available

Thomas Boni Yayi

stub · references available

Thomas Pynchon

stub · references available

Thomas Godoj

stub · references available

Thomas Woodhouse

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1145777367 · 0.5 · snapshot enwiki-001145777367

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
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

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