Which of the following schedules are REJECTED by the basic TO protocol? (TS(T1)=1, TS(T2)=2, TS(T3)=3, all initial timestamps = 0). Select all that apply.
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
Which of the following schedules are REJECTED by the basic TO protocol? (TS(T1)=1, TS(T2)=2, TS(T3)=3, all initial timestamps = 0). Select all that apply.
Which of the following properties does the basic Timestamp Ordering protocol guarantee?
View serializability is stricter than conflict serializability.
Which of the following are TRUE about Multiple Granularity Locking (MGL) used with 2PL? (Select all that apply)
(i) Intention locks must be acquired top-down (from root to leaf) before acquiring leaf locks
(ii) Locks are released bottom-up (from leaf to root) during the shrinking phase
(iii) IS lock on a table is compatible with X lock on the same table
(iv) IX and S locks on the same node are compatible
Which of the following are TRUE about deadlock handling in 2PL systems? (Select all that apply)
(i) Deadlock detection uses a wait-for graph; a cycle indicates deadlock
(ii) Deadlock prevention using timestamps includes Wait-Die and Wound-Wait schemes
(iii) Conservative 2PL prevents deadlocks without using timestamps
(iv) Strict 2PL inherently prevents deadlocks
A transaction in Basic 2PL has the following lock sequence: lock-S(A), lock-S(B), unlock(A), lock-X(C), unlock(B), unlock(C). Which statement is TRUE?
Which of the following anomalies can occur in Basic 2PL but are prevented in Strict 2PL? (Select all that apply)
(i) Dirty read
(ii) Cascading abort
(iii) Non-repeatable read
(iv) Lost update
Under the Wound-Wait scheme, transaction (timestamp = 5) requests a lock held by (timestamp = 10). What happens?
Which of the following is TRUE about the relationship between 2PL variants?
R-TS(Q) = 15, W-TS(Q) = 10. Transaction Ti with TS(Ti) = 12 issues write(Q) under the basic TO protocol. Does Ti abort? (Answer 1 for Yes, 0 for No)
The Thomas Write Rule ignores Ti's write on data item Q (instead of aborting Ti) specifically when:
Transactions T1(TS=1), T2(TS=2), T3(TS=3). Schedule: T3:read(A) → T2:write(A) → T1:write(A) → T3:write(B) → T1:read(B). Initial timestamps all 0. Using basic TO, how many transactions are aborted?
The Thomas Write Rule is an optimization of the basic TO protocol. It modifies the write rule by:
Which of the following deadlock prevention schemes uses timestamps to decide whether a transaction should wait or be rolled back?
Ti has TS(Ti) = 5. Current state: R-TS(X) = 8, W-TS(X) = 3. Ti issues read(X) under basic TO. What is the outcome?
The Timestamp Ordering protocol is deadlock-free because:
In a Wait-Die scheme, transactions with timestamps , , are in the system. requests a lock held by , and requests a lock held by . How many transactions will be rolled back (die) due to these two requests?
Which of the following are differences between Strict 2PL and Rigorous 2PL? (Select all that apply)
(i) Strict 2PL releases shared locks before commit; Rigorous 2PL holds all locks until commit
(ii) Rigorous 2PL prevents cascading aborts; Strict 2PL does not
(iii) Strict 2PL holds only X locks until commit; Rigorous 2PL holds both S and X locks until commit
(iv) Both prevent dirty reads
A system has 3 transactions each needing 2 locks. With deadlock prevention using Conservative 2PL (pre-claiming all locks), what is the minimum number of locks that must be available before any transaction can start executing?
The Two-Phase Locking protocol guarantees:
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 →