CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)

T1: R1(A), R1(B) and T2: W2(A), W2(B). Of all 6 interleavings that keep each transaction's own order, how many are conflict serializable?

  1. A. 2
  2. B. 4
  3. C. 6
  4. D. 3

Correct answer: B. 4

Enumerate the C(4, 2) = 6 interleavings and draw the precedence graph of each; exactly 4 have no cycle (all edges between T1 and T2 point the same way). The two serial schedules are always among them.

More DBMS and SQL questions

Exams that ask this topic