CS FundamentalsVery hardGATE CS (PYQ pattern)

Basic timestamp ordering with TS(T1) < TS(T2) < TS(T3). A transaction aborts when it violates the rules, and once aborted its later operations are ignored (rolled-back effects are not undone in the timestamps). Schedule: R2(Y), W1(Y), W3(Y), W2(Y), W2(X), W2(Y), R1(Y), W3(Y), W2(X). By how many does the number of aborted transactions under basic TO exceed the number under the Thomas write rule (an obsolete write is skipped instead of aborting)?

  1. A. 1
  2. B. 0
  3. C. 2
  4. D. 3

Correct answer: A. 1

Basic TO aborts [1, 2]; with the Thomas write rule an outdated write (write timestamp newer than the writer's, no later reader) is simply ignored, so only [1] aborts. Difference 1.

More DBMS and SQL questions

Exams that ask this topic