GATE CS 2016, set 1 · Question 61 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O₁, …, Oₖ}. This is done in the following manner:
Step 1. T acquires exclusive locks to O₁, …, Oₖ in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will

  1. (A) guarantee serializability and deadlock-freedom
  2. (B) guarantee neither serializability nor deadlock-freedom
  3. (C) guarantee serializability but not deadlock-freedom
  4. (D) guarantee deadlock-freedom but not serializability
Answer

Answer (A)

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes