CS FundamentalsHardGATE CS

Wound-wait and wait-die are timestamp-based deadlock-prevention schemes. Older transactions have smaller timestamps. In WAIT-DIE, what happens when an OLDER process requests a resource held by a YOUNGER one, and when a YOUNGER requests from an OLDER?

  1. A. Older preempts (wounds) the younger; younger waits
  2. B. Both wait
  3. C. Older waits; younger is rolled back (dies)
  4. D. Older is rolled back; younger waits

Correct answer: C. Older waits; younger is rolled back (dies)

Wait-die is non-preemptive: an older requester is allowed to wait, a younger requester dies and restarts with its original timestamp. Wound-wait is the preemptive opposite: the older wounds the younger, the younger waits.

More Operating Systems questions

Exams that ask this topic