CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

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

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

Correct answer: D. W2(B) (operation 5)

Track read-TS and write-TS of each item. W2(B) (operation 5) 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, W2(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