CS FundamentalsVery hardGATE CS (PYQ pattern)

T1 executes W1(A), C1 and T2 executes R2(A), W2(B), C2, each in the stated order. Among all interleavings of the five operations, how many are recoverable, how many avoid cascading aborts, and how many are strict (in that order)?

  1. A. 9, 9, 7
  2. B. 10, 7, 7
  3. C. 8, 7, 8
  4. D. 9, 7, 7

Correct answer: D. 9, 7, 7

There are C(5,2) = 10 interleavings. A schedule is recoverable unless T2 reads A after W1(A) and commits before T1; it avoids cascading aborts unless R2(A) occurs between W1(A) and C1; strictness here coincides with ACA (no overwrite of A happens). Counting gives 9, 7, 7.

More DBMS and SQL questions

Exams that ask this topic