StreakPeaked· Practice

ExamsGATETechnical

Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock? I. 2-phase locking II. Time-stamp ordering

  1. I only
  2. II only
  3. Both I and II
  4. Neither I nor II

Correct answer: II only

Solution

Time-stamp ordering guarantees conflict serializability by assigning timestamps to transactions, ensuring that they are executed in a consistent order, while also preventing deadlocks by not allowing transactions to wait for each other. In contrast, 2-phase locking can lead to deadlocks despite ensuring serializability.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →