GateAI
Transactions and Concurrency Control

GATE CSE 2024 Set 2 · Q27

MSQ1 markEasy

Time

Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official 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

Transactions and Concurrency Control

Let us analyze each statement about the Two Phase Locking (2PL) protocol:

  • Statement (A) is TRUE: The 2PL protocol guarantees conflict serializability, ensuring that every schedule generated under 2PL is serializable.

  • Statement (B) is FALSE: Locking right before and unlocking right after each operation does not enforce two phases and can lead to non-serializable schedules. Under 2PL, locks are held across operations in a growing phase and cannot be released until the shrinking phase begins.

  • Statement (C) is TRUE: The fundamental rule of 2PL is that once a transaction enters the shrinking phase (i.e., releases its first lock), it can never acquire any further locks.

  • Statement (D) is TRUE: Basic 2PL is susceptible to deadlocks because transactions may hold locks and wait indefinitely for locks held by other transactions.

Hence, statements (A), (C), and (D) are TRUE.

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 Q27 of the GATE CSE 2024 Set 2 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. 3 of them are 1-mark MSQs like this one, and GATE CSE 2024 Set 2 has 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2024 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2024 Set 2 · Q27 · MSQ

Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?

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.