GATE CSE Transactions and Concurrency Control PYQs
Across 2012–2026, Transactions and Concurrency Control in GATE CS is heavily weighted towards testing precedence (serialization) graphs for conflict serializabi… Read the guide
- Questions
- 25
- Asked
- since 2012
- Total marks
- 40
- Marks / paper
- 1.5
25 GATE CSE Transactions and Concurrency Control PYQs with solutions, from Databases. Browse all GATE CSE PYQs.
Questions
Every official paper that asked this topic, newest first.
- GATE CSE 2026 Set 2 · Q20Consider concurrent execution of two transactions and in a DBMS, both of which access a data object . For these two transactions to not conflict on , which one of the following statements must be true?MCQ1 markEasySolve
- GATE CSE 2025 Set 1 · Q15A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back? MCQ1 markEasySolve
- GATE CSE 2025 Set 2 · Q27An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. 10000 each from account to account . Both transactions read the same value, Rs. 11000, as the initial balance in and were allowed to go through. …MSQ1 markMediumSolve
- GATE CSE 2025 Set 2 · Q53Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?MSQ2 marksMediumDiagramSolve
- GATE CSE 2024 Set 1 · Q46Consider the following read-write schedule over three transactions , , and , where the subscripts in the schedule indicate transaction IDs: Which of the following transaction schedules is/are conflict equivalent to…MSQ2 marksMediumSolve
- GATE CSE 2024 Set 2 · Q19Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is calledMCQ1 markEasySolve
- GATE CSE 2024 Set 2 · Q27Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?MSQ1 markEasySolve
- GATE CSE 2022 · Q39Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions. : Which one of the following serial schedules is conflict equivalent to ?MCQ2 marksMediumSolve
- GATE CSE 2021 Set 1 · Q13Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?MSQ1 markMediumSolve
- GATE CSE 2021 Set 1 · Q32Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules. Which one of the following options is…MCQ2 marksMediumSolve
- GATE CSE 2021 Set 2 · Q32Let S be the following schedule of operations of three transactions , and in a relational database system: Consider the statements P and Q below: P: S is conflict-serializable. Q: If commits before …MCQ2 marksMediumSolve
- GATE CSE 2020 · Q37Consider a schedule of transactions and : 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?MCQ2 marksMediumDiagramSolve
- GATE CSE 2019 · Q11Consider the following two statements about database transaction schedules: I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable. II. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not…MCQ1 markMediumSolve
- GATE CSE 2017 Set 1 · Q42In a database system, unique timestamps are assigned to each transaction using Lamport's logical clock. Let and be the timestamps of transactions and respectively. Besides, holds a lock on the resource R, and has requested a conflicting lock on the same resource…MCQ2 marksMediumSolve
- GATE CSE 2017 Set 2 · Q44Two transactions and are given as where denotes a read operation by transaction on a variable and denotes a write operation by transaction on a variable . The total number of conflict…NAT2 marksHardSolve
- GATE CSE 2016 Set 1 · Q22Which one of the following is NOT a part of the ACID properties of database transactions?MCQ1 markEasySolve
- GATE CSE 2016 Set 1 · Q51Consider the following two phase locking protocol. Suppose a transaction accesses (for read or write operations), a certain set of objects . This is done in the following manner: Step 1. acquires exclusive locks to in increasing order of their addresses. Step 2.…MCQ2 marksMediumSolve
- GATE CSE 2016 Set 2 · Q22Suppose a database schedule involves transactions . Construct the precedence graph of with vertices representing the transactions and edges representing the conflicts. If is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to…MCQ1 markEasySolve
- GATE CSE 2016 Set 2 · Q51Consider the following database schedule with two transactions, and . where denotes a *read* operation by transaction on a variable , denotes a *write* operation by on a variable and …MCQ2 marksMediumSolve
- GATE CSE 2015 Set 2 · Q1Consider the following transaction involving two bank accounts and .
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 ofMCQ1 markEasySolve - GATE CSE 2015 Set 3 · Q29Consider the following partial Schedule involving two transactions and . Only the read and the write operations have been shown. The read operation on data item is denoted by and the write operation on data item is denoted by . Suppose that the transaction …MCQ2 marksMediumDiagramSolve
- GATE CSE 2014 Set 1 · Q29Consider the following four schedules due to three transactions (indicated by the subscript) using and on a data item , denoted by and respectively. Which one of them is conflict serializable?MCQ2 marksMediumSolve
- GATE CSE 2014 Set 2 · Q29Consider the following schedule of transactions T1, T2, T3, T4: Which one of the following statements is CORRECT?MCQ2 marksMediumDiagramSolve
- GATE CSE 2014 Set 3 · Q29Consider the transactions
T1,T2, andT3and the schedulesS1andS2given 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)…MCQ2 marksMediumSolve - GATE CSE 2012 · Q27Consider the following transactions with data items and initialized to zero:
:
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).…MCQ2 marksMediumSolve
What GATE tests in Transactions and Concurrency Control
Concepts, patterns, formulas and traps distilled from past papers.
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.
Core concepts
- Conflict operations (R-W, W-R, W-W on the same variable by distinct transactions)
- Precedence (serialization) graph construction and cycle detection
- Topological sorting to obtain conflict-equivalent serial schedules
- Hierarchy of schedules: Strict ⊂ Cascadeless ⊂ Recoverable ⊂ All schedules
- Dirty read anomaly and cascading rollbacks upon abort
- Two-Phase Locking (Basic 2PL, Strict 2PL, Rigorous 2PL, Conservative 2PL)
- Deadlock prevention schemes: Wait-Die vs Wound-Wait timestamp ordering
- Thomas' Write Rule and View Serializability
- ACID properties (Atomicity, Consistency, Isolation, Durability) and anomaly mappings (Lost Update, Inconsistent Analysis)
- Idempotency of Redo and Undo operations in log-based crash recovery
Recurring question patterns
Precedence Graph Cycle Detection & Equivalent Serial Order
CommonMCQ2 marks2025, 2024, 2022, 2021Given 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
CommonMCQ2 marks2025, 2021, 2016, 2015Given 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)
CommonMSQ1 marks2024, 2019, 2017, 2016Conceptual 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
OccasionalMCQ1 marks2025, 2024, 2016, 2015Application scenarios (e.g., banking transfers, lost updates, uncommitted reads) mapping anomalies to specific ACID property violations (Atomicity, Consistency, Isolation, Durability).
Combinatorial Interleaving & Serializability Counting
RareNAT2 marks2017Counting the total number of conflict serializable schedules out of all possible interleavings by finding cycle-inducing relative orders.
Log-Based Recovery & Crash Semantics
RareMSQ1 marks2021Analyzing behavior of DBMS crash recovery, idempotency of undo/redo actions, and state preservation when crashes occur during recovery without checkpoints.
Formulas GATE uses
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.
Examiner traps in Transactions and Concurrency Control
- Confusing Read-Read operations as conflicts (Read-Read is non-conflicting).
- Assuming 2PL prevents deadlocks (Basic 2PL guarantees conflict serializability but NOT deadlock freedom).
- Assuming a schedule is non-recoverable just because it has dirty reads; it becomes non-recoverable ONLY if the dirty reader commits BEFORE the writer commits.
- Confusing 'Cascadeless' with 'Strict' (Strict requires write-write to also wait for commit/abort; cascadeless only restricts write-read).
- Overlooking disconnected nodes in the precedence graph when listing all conflict-equivalent serial schedules in MSQs (unconstrained nodes can be placed anywhere relative to others).
- Mixing up Wound-Wait (preemptive, older wounds younger) with Wait-Die (non-preemptive, older waits, younger dies).
- Assuming lost updates violate only Atomicity rather than Isolation and Consistency.
How questions are asked
- Given a schedule string, determine if it is conflict serializable and/or recoverable
- Select all conflict-equivalent serial orders from a given set (MCQ/MSQ)
- Match locking/timestamping protocols to their guarantees (serializability, deadlock-freedom, starvation-freedom)
- Count the number of conflict serializable schedules using combinatorics (NAT)
- Identify which transactions must cascade-abort when a specific transaction fails
- Scenario-based identification of violated ACID properties upon a concurrent failure
Paper trends
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
Difficulty notes
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.