CS FundamentalsVery hardGATE CS

T1 and T2 run the schedule R1(A), W2(A), R1(B), C1, C2, and each transaction may acquire any lock as early as it likes. Under which locking protocols can this exact schedule occur?

  1. A. Basic 2PL only, not strict or rigorous 2PL
  2. B. None of the basic, strict or rigorous variants
  3. C. Basic and strict 2PL, but not rigorous 2PL
  4. D. All three: basic, strict and rigorous 2PL

Correct answer: C. Basic and strict 2PL, but not rigorous 2PL

T1 can take S(A) and S(B) first and release S(A) before W2(A), still being two-phase. Strict 2PL holds only exclusive locks to commit, so releasing T1's shared lock early is allowed; rigorous 2PL holds every lock to commit, so W2(A) could not run before C1.

More DBMS and SQL questions

Exams that ask this topic