Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

  • GATE CS
  • 2026–27 pattern practice
  • Databases
  • Serializability
  • Medium

Is the schedule S:r1(X), w2(X), w1(X)S: r_1(X),\ w_2(X),\ w_1(X) conflict serializable?

Transactions

Pick an option to check your answer.

The conflicting pairs are:

  • r1(X)r_1(X) before w2(X)w_2(X), giving the edge T1 → T2.
  • w2(X)w_2(X) before w1(X)w_1(X), giving the edge T2 → T1.

The cycle means the schedule is not conflict serializable — this is the classic lost-update pattern.

Why not the others

  • Yes — it is equivalent to T1 then T2 conflicts with the T2 → T1 edge.
  • Yes — it is equivalent to T2 then T1 conflicts with the T1 → T2 edge.
  • Yes — every schedule of two transactions is conflict serializable — this very schedule is a counter-example.

Report an error

GATE CS · Databases · Transactions