CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

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

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

Correct answer: C. W1(B) (operation 4)

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

More DBMS and SQL questions

Exams that ask this topic