CS FundamentalsHardGATE CS · DBMS
Under BOTH wait-die and wound-wait deadlock prevention, which transaction can be rolled back when a lock conflict occurs?
- A. Always the requesting transaction
- B. Always the transaction holding the lock
- C. Only the younger transaction (larger timestamp)
- D. Only the older transaction
Correct answer: C. Only the younger transaction (larger timestamp)
Wait-die: a younger requester dies. Wound-wait: an older requester wounds (aborts) the younger holder. Either way the victim is the younger one, and restarting with the original timestamp prevents starvation.
More DBMS and SQL questions
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B, C, D, E, F) with functional dependencies E → B, F → A, B → A, C → E is decomposed into R1(A, B, F), R2(B, D, E), R3(C, E). Which…
- On R(A, B, C, D, E), F = {AB → C, DE → C, B → C} and G = {B → DE, E → AC, D → A}. Which statement is correct? ("F covers G" means every FD…
- R(A, B, C, D, E, F) has FDs E → AB, C → A, DE → AB, B → EF. Each option is a relation schema obtained by projecting R, with the…
- Classify the schedule W3(B), R1(A), W1(B), C1, W2(A), W3(A), R2(A), W2(B), C3, C2 (Ci = commit of Ti) by the strongest property it…
- A B+ tree has at most 10 children per internal node and at most 8 keys per leaf. A non-root internal node must have at least ⌈10/2⌉…