CS FundamentalsVery hardGATE CS (PYQ pattern)

TS(T1) < TS(T2) < TS(T3). T1: W1(A), R1(B); T2: R2(A), W2(B); T3: W3(A), W3(B). Of all 90 interleavings, how many complete with NO abort under basic timestamp ordering, and how many under timestamp ordering with the Thomas write rule?

  1. A. 8 and 5
  2. B. 5 and 13
  3. C. 5 and 8
  4. D. 8 and 8

Correct answer: C. 5 and 8

Simulating the read/write timestamp checks on all 90 interleavings: basic TO accepts 5; Thomas additionally skips obsolete writes and accepts 8.

More DBMS and SQL questions

Exams that ask this topic