CS FundamentalsHardIBM · Deloitte pattern

Rigorous two-phase locking (Rigorous 2PL) goes one step further than Strict 2PL. What extra guarantee does it add?

  1. A. It removes the shrinking phase
  2. B. It allows deadlock to never occur, unlike Strict 2PL
  3. C. It only works with a single resource type
  4. D. It holds BOTH shared (read) and exclusive (write) locks until commit/abort, so transactions appear to execute in their commit order, which is a useful extra property for some replication/recovery schemes

Correct answer: D. It holds BOTH shared (read) and exclusive (write) locks until commit/abort, so transactions appear to execute in their commit order, which is a useful extra property for some replication/recovery schemes

Strict 2PL only holds WRITE locks until commit; Rigorous 2PL holds both read and write locks until commit/abort. This gives the useful property that the order in which transactions commit matches a valid serial order (commit order = serialization order), which simplifies certain recovery and replication protocols.

More DBMS and SQL questions

Exams that ask this topic