CS FundamentalsHardProduct-company MCQ pattern

Under basic timestamp ordering, TS(T1) = 10 and TS(T2) = 20. T2 has read item X, so read-TS(X) = 20. T1 now issues write(X). What happens?

  1. A. The write is ignored under the Thomas write rule
  2. B. T2 is rolled back
  3. C. T1 is rolled back
  4. D. The write is performed

Correct answer: C. T1 is rolled back

A write by T1 is rejected when TS(T1) < read-TS(X): a younger transaction already read the old value, so T1 is aborted and restarted. The Thomas write rule only ignores obsolete writes when a younger transaction has WRITTEN X, not read it.

More DBMS and SQL questions

Exams that ask this topic