CS FundamentalsVery hardGATE CS (PYQ pattern)

Multiversion timestamp ordering with TS(T1) < TS(T2) < TS(T3): a read of X returns the version with the largest write timestamp <= TS(T) and records the read timestamp; a write by T is rejected (T aborts) if the version it would follow has a read timestamp greater than TS(T), otherwise it creates a new version. Once aborted, a transaction's later operations are ignored. Schedule: R3(A), W1(B), W3(B), R2(B), R2(B), R1(B), W3(A), W2(A), W2(B). Which transaction aborts?

  1. A. T1
  2. B. T3
  3. C. No transaction aborts
  4. D. T2

Correct answer: D. T2

Track version write/read timestamps per item: the write by T2 finds that a younger transaction has already read the version it would overwrite, so it is rejected; all other operations succeed (reads never abort in MVTO).

More DBMS and SQL questions

Exams that ask this topic