CS FundamentalsHardGATE CS

TS(T1) = 7, TS(T2) = 3, TS(T3) = 9; all read/write timestamps start at 0. The schedule W2(A), R3(A), W1(A), W3(B), R1(B), W2(B) is run, skipping an aborted transaction's later operations. Which transactions are rolled back under basic TO, and which with Thomas' write rule?

  1. A. Basic: T1 only; Thomas: T1 only
  2. B. Basic: T1 and T2; Thomas: T1 only
  3. C. Basic: T1 and T2; Thomas: T2 only
  4. D. Basic: T2 only; Thomas: none

Correct answer: B. Basic: T1 and T2; Thomas: T1 only

W1(A) fails both ways because RTS(A) = 9 > 7 (a read, so Thomas cannot help). W2(B) has TS 3 < WTS(B) = 9 with RTS(B) = 0: basic TO aborts T2, Thomas' rule just ignores the obsolete write.

More DBMS and SQL questions

Exams that ask this topic