GateAI
Transactions and Concurrency Control

GATE CSE 2014 Set 2 · Q29

MCQ2 marksMedium

Time

Consider the following schedule S\mathbf{S} of transactions T1, T2, T3, T4: Which one of the following statements is CORRECT?

GATE CSE 2014 Set 2 Q29 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) S is both conflict-serializable and recoverable

Transactions and Concurrency Control

Let us analyze the given schedule S\mathbf{S} for conflict serializability and recoverability:

### 1. Conflict Serializability Construct the precedence graph by identifying conflicting operations (operations on the same data item by different transactions where at least one is a write):

  • On data item XX:

    • R2(X)R_2(X) occurs before W3(X)  ⟹  T2→T3W_3(X) \implies T_2 \to T_3

    • R2(X)R_2(X) occurs before W1(X)  ⟹  T2→T1W_1(X) \implies T_2 \to T_1

    • W3(X)W_3(X) occurs before W1(X)  ⟹  T3→T1W_1(X) \implies T_3 \to T_1

    • W1(X)W_1(X) occurs before R4(X)  ⟹  T1→T4R_4(X) \implies T_1 \to T_4

  • On data item YY:

    • W2(Y)W_2(Y) occurs before R4(Y)  ⟹  T2→T4R_4(Y) \implies T_2 \to T_4

  • On data item ZZ:

    • Only R2(Z)R_2(Z) is present, so there are no conflicts.

The resulting precedence graph has edges:

T2→T3→T1→T4T_2 \to T_3 \to T_1 \to T_4

Since there are no cycles in the precedence graph, the schedule is conflict-serializable (equivalent serial schedule: T2→T3→T1→T4T_2 \to T_3 \to T_1 \to T_4).

### 2. Recoverability A schedule is recoverable if every transaction TjT_j that reads a value written by transaction TiT_i commits only after TiT_i commits.

  • T4T_4 reads XX written by T1T_1, and T1T_1 commits before T4T_4 commits.

  • T4T_4 reads YY written by T2T_2, and T2T_2 commits before T4T_4 commits.

  • All other reads are from initial database values.

Since all write-read dependencies commit in the proper order, the schedule is recoverable.

Therefore, S\mathbf{S} is both conflict-serializable and recoverable.

Thus, (C) is the correct option.

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 Q29 of the GATE CSE 2014 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. 12 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2014 Set 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2014 Set 2

Share this solution

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

GateAI solution cardGATE CSE 2014 Set 2 · Q29 · MCQ

Consider the following schedule S of transactions T1, T2, T3, T4: Which one of the following statements is CORRECT?

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.