25 Qs · since 2012 · 40 marks · 1.5 marks/paperMedium yield
Across 2012–2026, Transactions and Concurrency Control in GATE CS is heavily weighted towards testing precedence (serialization) graphs for conflict serializability, schedule class… Guide
read(x) ; x := x - 50; write(x) ; read(y) ; y:= y + 50; write(y)
The constraint that the sum of the accounts and should remain constant is that ofT1, T2, and T3 and the schedules S1 and S2 given below.
T1: r1(X); r1(Z); w1(X); w1(Z)T2: r2(Y); r2(Z); w2(Z)T3: r3(Y); r3(X); w3(Y)S1: r1(X); r3(Y); r3(X); r2(Y); r2(Z); w3(Y); w2(Z); r1(Z); w1(X); w1(Z)…read (P);read (Q);if P = 0 then Q := Q + 1 ;write (Q).
: read (Q);read (P);if Q = 0 then P := P + 1 ;write (P).…Topic guide
Across 2012–2026, Transactions and Concurrency Control in GATE CS is heavily weighted towards testing precedence (serialization) graphs for conflict serializability, schedule classification (recoverable, cascadeless, strict), and locking/timestamping protocol mechanics. Questions frequently present interleaved schedules and require students to identify conflict edges, count valid topological orders, or detect recovery anomalies such as dirty reads and cascading rollbacks. Recent exams (2021–2025) feature multiple MSQs testing theoretical invariants of Two-Phase Locking (2PL), deadlock prevention protocols (Wait-Die, Wound-Wait), and real-world ACID violations.
Precedence Graph Cycle Detection & Equivalent Serial Order
common · MCQ · 2 marks · 2025, 2024, 2022, 2021
Given one or more transaction schedules with interleaved and operations, determine conflict serializability by constructing the precedence graph and/or find the conflict equivalent serial schedule(s) via topological sorting.
Schedule Recoverability and Cascading Aborts Analysis
common · MCQ · 2 marks · 2025, 2021, 2016, 2015
Given an execution sequence with commit/abort events, analyze whether dirty reads occur ( without commit), determine if the schedule is recoverable ( commits before ), cascadeless, or strict, and identify required cascading rollbacks.
Properties of Concurrency Control Protocols (2PL & Timestamps)
common · MSQ · 1 marks · 2024, 2019, 2017, 2016
Conceptual evaluation (often in MSQ or 2-statement format) of 2PL variants (Basic, Strict, Rigorous, Conservative), address-ordered locking for deadlock freedom, Thomas' Write Rule generating view serializable schedules, or Wait-Die / Wound-Wait schemes.
ACID Properties & Concurrency Anomalies
occasional · MCQ · 1 marks · 2025, 2024, 2016, 2015
Application scenarios (e.g., banking transfers, lost updates, uncommitted reads) mapping anomalies to specific ACID property violations (Atomicity, Consistency, Isolation, Durability).
Combinatorial Interleaving & Serializability Counting
rare · NAT · 2 marks · 2017
Counting the total number of conflict serializable schedules out of all possible interleavings by finding cycle-inducing relative orders.
Log-Based Recovery & Crash Semantics
rare · MSQ · 1 marks · 2021
Analyzing behavior of DBMS crash recovery, idempotency of undo/redo actions, and state preservation when crashes occur during recovery without checkpoints.
Total Interleavings of Two Transactions
Used when counting total possible concurrent schedules formed by two transactions of length and operations preserving intra-transaction order.
Conflict Condition Definition
Used to add directed edges in a precedence graph whenever appears before in schedule .
Recoverability Rule
Used to check whether a schedule is recoverable by verifying that the writer transaction commits before the reader transaction commits.
Cascadelessness Rule (Avoids Cascading Aborts)
Used to verify that every read operation only reads committed data (no dirty reads).
Strict Schedule Rule
Used to verify that no transaction reads or overwrites uncommitted written data.
Shift from single-answer MCQs identifying a unique serial order to MSQs where multiple serial orders are valid due to disconnected DAG components or independent transactions.
2024, 2022
Increased focus on multi-concept MSQs combining 2PL phase rules, deadlock possibilities, and transaction abort ripple effects (cascading rollbacks).
2025, 2024
Contextual scenario-based questions (e.g., banking system audit logs) testing nuanced distinctions between Isolation and Consistency violations rather than pure rote definitions.
2025, 2015
Easy: Direct definition matching of ACID properties, identifying conflict pairs (), or checking 2-node precedence graphs for cycles. Medium: Multi-transaction (3 or 4 transactions) precedence graphs with branching topological orders, classifying schedules across the hierarchy (Strict vs Cascadeless vs Recoverable), or evaluating 2PL / Wound-Wait protocol claims in MSQ format. Hard: Combinatorial enumeration (NAT) of non-serializable interleavings against total permutations or subtle view serializability edge cases involving blind writes.