GATE CS 2024 Set 2 | Question 27

Databases › Transaction Management · MSQ · 1 mark · Answer: A, C, D

  1. Question 27Databasesmsq1 mark
    Which statements about the 2PL protocol is/are TRUE?
    • A.
      2PL permits only serializable schedules
      ✓
    • B.
      With 2PL, a transaction locks just before every operation and releases just after
    • C.
      Once a lock is released in a transaction, no more locks can be obtained in that transaction
      ✓
    • D.
      A deadlock is possible with 2PL
      ✓

    Answer: A, C, D

    Solution

    Answer: (A), (C) and (D) 2PL guarantees conflict-serializable schedules (A). Its defining rule is a growing phase then a shrinking phase: once any lock is released, no new lock may be acquired (C). 2PL can still deadlock (D). (B) is false — that describes a non-2PL lock-just-around-each-operation discipline, which violates the two-phase rule.

More GATE PYQ on Transaction Management

All GATE CS Databases PYQ →

Attempt GATE CS 2024 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →