CS FundamentalsModerateGATE CS · DBMS
In a wait-for graph, T1 waits for T2, T2 waits for T3, T3 waits for T4 and T4 waits for T2. T5 waits for T1. Which transactions are deadlocked (part of a cycle)?
- A. T2, T3 and T4 only
- B. None — a deadlock needs exactly two transactions
- C. All five transactions
- D. T1, T2, T3 and T4
Correct answer: A. T2, T3 and T4 only
The only cycle is T2 → T3 → T4 → T2. T1 and T5 are blocked behind it but not in the cycle; aborting a cycle member (say T4) frees them.
More DBMS and SQL questions
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B) = {(a1, b1), (a1, b2), (a2, b1), (a2, b3), (a3, b1), (a3, b2), (a3, b3), (a4, b1), (a4, b2)} and S(B) = {b2, b3}. What is R ÷ S?
- Σ = {DE → C, AB → CE, D → ABE}. Consider the FD DE → C while computing a canonical cover. Which statement about extraneous attributes on…
- R(A, B, C, D, E) has functional dependencies A → D, CE → AB, AB → C, C → AB. How many prime attributes does R have?
- Classify the schedule W1(A), W3(A), R3(A), R3(B), R1(A), R2(A), R2(B).
- R(A, B, C, D, E) has functional dependencies BD → A, E → B, B → E, AD → B. Which of the following is the complete set of candidate keys of…