GateAI
Transactions and Concurrency Control

GATE CSE 2020 · Q37

MCQ2 marksMedium

Time

Consider a schedule of transactions T1T_1 and T2T_2: Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to the above schedule?

GATE CSE 2020 Q37 diagram

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: A)

Transactions and Concurrency Control

Two schedules are conflict equivalent if they involve the same set of operations and order every pair of conflicting operations in the exact same way.

Let us identify the conflicting pairs between T1T_1 and T2T_2 in the given schedule:

  1. On data item BB:

    • T2:R(B)T_2: R(B) occurs before T1:W(B)T_1: W(B)   ⟹  T2→T1\implies T_2 \rightarrow T_1

    • T2:W(B)T_2: W(B) occurs before T1:W(B)T_1: W(B)   ⟹  T2→T1\implies T_2 \rightarrow T_1

  2. On data item DD:

    • T2:R(D)T_2: R(D) occurs before T1:W(D)T_1: W(D)   ⟹  T2→T1\implies T_2 \rightarrow T_1

  3. On data item CC:

    • T1:R(C)T_1: R(C) occurs before T2:W(C)T_2: W(C)   ⟹  T1→T2\implies T_1 \rightarrow T_2

Now check the given options:

  • In Schedule (A):

    • On BB: T2T_2's R(B)R(B) and W(B)W(B) precede T1T_1's W(B)W(B) (T2→T1T_2 \rightarrow T_1 maintained).

    • On DD: T2T_2's R(D)R(D) precedes T1T_1's W(D)W(D) (T2→T1T_2 \rightarrow T_1 maintained).

    • On CC: T1T_1's R(C)R(C) precedes T2T_2's W(C)W(C) (T1→T2T_1 \rightarrow T_2 maintained).

Since all conflicting operation pairs preserve the exact same relative ordering, schedule (A) is conflict equivalent to the given schedule.

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 Q37 of the GATE CSE 2020 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 2020.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2020

Share this solution

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

GateAI solution cardGATE CSE 2020 · Q37 · MCQ

Consider a schedule of transactions T1 and T2: Here, RX stands for “Read(X)” and WX stands for “Write(X)”. Which one of the following schedules is conflict equivalent to the above schedule?

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.