GateAI
Transactions and Concurrency Control

GATE CSE 2016 Set 1 · Q51

MCQ2 marksMedium

Time

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

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A) guarantee serializability and deadlock-freedom

Transactions and Concurrency Control

Let us analyze the two properties of the given locking protocol:

  1. Serializability:

    • The protocol follows strict two-phase locking (2PL) where all locks are acquired before any operations are performed and before any lock is released (all locks released together at the end).

    • Basic Two-Phase Locking (and conservative/rigorous 2PL) guarantees conflict serializability because the lock point of each transaction establishes a serial order without conflict cycles.

  2. Deadlock-freedom:

    • Deadlock occurs if there is a circular wait condition in the resource allocation graph.

    • In this protocol, every transaction requests and acquires exclusive locks on objects in a globally predefined linear ordering (i.e., in increasing order of their memory addresses).

    • Imposing a global strict total ordering on resource acquisition prevents circular waiting, thereby guaranteeing freedom from deadlocks.

Hence, the protocol guarantees serializability and deadlock-freedom.

Correct Option: (A)

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Transactions and Concurrency Control previous year question is Q51 of the GATE CSE 2016 Set 1 paper. Find more GATE CSE PYQs on Transactions and Concurrency Control in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Transactions and Concurrency Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Transactions and Concurrency Control in GATE CSE

Transactions and Concurrency Control has 25 GATE CSE PYQs across 20 papers from 2012 to 2026. 12 of them are 2-mark MCQs like this one, and GATE CSE 2016 Set 1 has 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2016 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2016 Set 1 · Q51 · MCQ

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

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.