Skip to content
Mad4Study

Engineering & Science

GATE Computer Science

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

Consider the schedule S: r1(A), w2(A), w1(A)S:\ r_1(A),\ w_2(A),\ w_1(A). Which statement is correct?

Transactions

Pick an option to check your answer.

Build the precedence graph from conflicting pairs (same item, at least one write, different transactions):

  1. r1(A)r_1(A) before w2(A)w_2(A) → edge T1→T2T_1 \to T_2
  2. w2(A)w_2(A) before w1(A)w_1(A) → edge T2→T1T_2 \to T_1

The graph has a cycle T1→T2→T1T_1 \to T_2 \to T_1, so SS is not conflict serializable. (It is a lost-update pattern.)

Why not the others

  • SS is conflict serializable, equivalent to T1,T2T_1, T_2 — the edge T2→T1T_2 \to T_1 forbids that order.
  • SS is conflict serializable, equivalent to T2,T1T_2, T_1 — the edge T1→T2T_1 \to T_2 forbids that order.
  • SS is a serial schedule — the operations of T1T_1 and T2T_2 are interleaved.

Report an error

GATE CS · Databases · Transactions