Consider the schedule: . The precedence graph has edges:
GATE CSE · Dbms
Master topic for Transactions. Includes Transactions - View Serializability, Concurrency - Two-Phase Locking (2PL), Timestamp Ordering Protocol.
120 questions · 0 PYQs · 20 AI practice · GATE CSE 2027
Consider the schedule: . The precedence graph has edges:
A schedule is conflict serializable if and only if its precedence graph (conflict graph) is:
Which of the following is a correct statement about 2PL and recoverability?
Which of the following schedules is REJECTED by the basic TO protocol? (TS(T1)=1, TS(T2)=2, all initial timestamps = 0)
Cascading rollback (cascading abort) in basic 2PL occurs when:
Predicate locking is used in 2PL to address which problem?
Which of the following correctly describes the Two-Phase Locking (2PL) protocol?
In Strict 2PL, all exclusive (write) locks are:
Two transactions and follow 2PL. has lock point at time 10 and has lock point at time 15. The equivalent serial schedule is:
Consider the schedule : . Is this schedule produced by 2PL transactions?
Which of the following is the MAIN disadvantage of Conservative 2PL compared to Basic 2PL?
Which of the following schedules violates the Two-Phase Locking protocol?
: lock-X(A), read(A), write(A), unlock(A), lock-X(B), write(B), unlock(B)
: lock-X(A), read(A), unlock(A)
A transaction follows Strict 2PL and accesses 6 distinct data items, acquiring and releasing locks in the order: acquires lock on items 1,2,3,4,5,6 (all before any release), then releases all after commit. How many phases does this transaction have in terms of 2PL?
Multiple Granularity Locking (MGL) with 2PL uses intention locks. Which of the following is the correct compatibility: can a transaction holding IS on a table grant another transaction an X lock on the same table?
Consider 5 transactions following 2PL. Their lock points are at times 2, 7, 4, 9, 1. What is the position of the transaction with lock point 7 in the equivalent serial schedule?
Consider transactions , , following 2PL with lock points at times 5, 3, and 8 respectively. In the equivalent serial schedule, what is the position (1st, 2nd, 3rd) of ?
In the wait-for graph with transactions and edges , , , , how many transactions are involved in a deadlock cycle?
Which of the following correctly compare the TO protocol and Two-Phase Locking (2PL)? Select all that apply.
A schedule has 4 transactions. Its precedence graph has edges: , , , . How many distinct topological orderings (equivalent serial schedules) does this graph have?
Transactions T1(TS=1), T2(TS=2), T3(TS=3). Schedule: T1:write(X) → T2:read(X) → T3:write(X) → T1:write(Y) → T2:write(Y). Initial timestamps all 0. Using the basic TO protocol, how many transactions are aborted?
Want unlimited AI-generated Transactions questions?
Sign up free and practice with adaptive difficulty — Easy, Medium, Hard. New questions every session.
Start practising for free →