All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · June 2023

Which of the following concurrency-control protocols ensures both conflict serializability and freedom from deadlock?
Statement I: Two-phase locking
Statement II: Timestamp ordering

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. Statement I is incorrect but Statement II is correct

Explanation

2PL guarantees conflict serializability but can deadlock. Timestamp ordering ensures conflict serializability and, since transactions never wait, it is deadlock-free.

More Database Management Systems questions