CS FundamentalsHardProduct-company MCQ pattern

Is the schedule R1(A), R2(A), W1(A), W2(A) conflict serializable?

  1. A. Yes, equivalent to T1 → T2
  2. B. Yes, equivalent to T2 → T1
  3. C. Yes, because no transaction reads a dirty value
  4. D. No; the precedence graph has a cycle T1 → T2 → T1

Correct answer: D. No; the precedence graph has a cycle T1 → T2 → T1

R1(A) before W2(A) gives T1 → T2; R2(A) before W1(A) gives T2 → T1. A cycle means it is not conflict serializable; this is the lost-update pattern, where T1's write is overwritten.

More DBMS and SQL questions

Exams that ask this topic