CS FundamentalsVery hardWipro Elite · LTIMindtree

Basic timestamp ordering is used with timestamps TS(T1) = 1, TS(T2) = 2, TS(T3) = 3. The schedule on one item A is R2(A), W3(A), R1(A), W2(A), W1(A). Which transactions are aborted? (An aborted transaction's later operations are discarded.)

  1. A. T2 only
  2. B. T1 only
  3. C. T1 and T2
  4. D. No transaction is aborted

Correct answer: C. T1 and T2

After R2 and W3, RTS(A) = 2 and WTS(A) = 3. R1(A) has TS 1 < WTS 3, so T1 aborts. W2(A) has TS 2 < WTS 3, so T2 aborts. W1 is discarded.

More DBMS and SQL questions

Exams that ask this topic