GATE 2024 CS (CS2) – Question 27
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) 2PL permits only serializable schedules; (C) With 2PL, once a lock is released on any data item inside a transaction, no more locks on any data item can be obtained inside that transaction; (D) A deadlock is possible with 2PL
Explanation
2PL guarantees conflict serializability, has a growing then shrinking phase (no new locks after first release), and can deadlock. Releasing right after each operation would violate 2PL.