CS FundamentalsVery hardGATE CS · DBMS

TS(T1) = 15, TS(T2) = 30, TS(T3) = 25; all read/write timestamps start at 0. Under basic timestamp ordering with Thomas's write rule, which operation of the schedule W3(A), R1(B), W1(A), R3(A), R2(B), R1(A), W2(A) is the first to make its transaction roll back?

  1. A. R3(A) (operation 4)
  2. B. W1(A) (operation 3)
  3. C. R1(A) (operation 6)
  4. D. No operation is rejected

Correct answer: C. R1(A) (operation 6)

Track read-TS and write-TS of each item. R1(A) (operation 6) is the first operation that violates the protocol (a read of a value with a newer write-TS, or a write after a newer read or write). Earlier, W1(A) (operation 3) was an obsolete write and is simply ignored under Thomas's rule instead of causing a rollback.

More DBMS and SQL questions

Exams that ask this topic