Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2025 Set 2 · Q53
Time

Select all that applyOne or more correct
Solution
Official answer: B) W2(X), R1(X), W2(Y), W1(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)
Transactions and Concurrency ControlTo determine whether a schedule is conflict serializable, we construct the precedence (serializability) graph for each schedule:
Option (A):
occurs before
occurs before and
There is a cycle (), so the schedule is not conflict serializable.
Option (B):
occurs before and
occurs before
There is no conflicting pair where precedes . The graph has only the edge , which is acyclic. Thus, this schedule is conflict serializable.
Option (C):
occurs before
occurs before and
There is a cycle (), so the schedule is not conflict serializable.
Option (D):
occurs before and
occurs before
There is a cycle (), so the schedule is not conflict serializable.
Hence, only option (B) is conflict serializable.
Try the question first, then check your work.
Examiner trap
Construct a precedence graph with transactions as nodes. Draw a directed edge if an operation of precedes and conflicts with an operation of on the same data item (, , or ). The schedule is conflict serializable if and only if the precedence graph has no cycles.
This Transactions and Concurrency Control previous year question is Q53 of the GATE CSE 2025 Set 2 paper. Find more GATE CSE PYQs on Transactions and Concurrency Control in Databases, or browse all GATE CSE PYQs.
Free diagnostic
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.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Transactions and Concurrency Control has 25 GATE CSE PYQs across 20 papers from 2012 to 2026. 2 of them are 2-mark MSQs like this one, and GATE CSE 2025 Set 2 has 2.
How GATE tests Transactions and Concurrency ControlIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.