CS FundamentalsHardGATE CS · DBMS

Under BOTH wait-die and wound-wait deadlock prevention, which transaction can be rolled back when a lock conflict occurs?

  1. A. Always the requesting transaction
  2. B. Always the transaction holding the lock
  3. C. Only the younger transaction (larger timestamp)
  4. 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

Exams that ask this topic