CS FundamentalsVery hardGATE CS (PYQ pattern)

Three transactions each execute R(A) followed by W(A) on the same item A. Among all interleavings of the six operations (each transaction's own order preserved), how many are conflict-serializable?

  1. A. 24
  2. B. 12
  3. C. 6
  4. D. 5

Correct answer: C. 6

There are 6!/(2!2!2!) = 90 interleavings. For two transactions only the serial orders work; for three, each pair must be non-interleaved in the sense that no cyclic conflict arises, which only the 3! serial orders satisfy: 6.

More DBMS and SQL questions

Exams that ask this topic