Last Updated : 30 Nov, 2018

Which of the following statement/s is/are correct?
I – Wound-Wait is a preemptive technique for deadlock prevention. When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp smaller than that of Tj (i.e. Ti is older than Tj), otherwise, Ti is rolled back.
II – Wait-Die It is a Non-preemptive technique for deadlock prevention. It is a counterpart to the wait-die scheme. When Transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp larger than that of Tj , otherwise Tj is rolled back (Tj is wounded by Ti)

(A) Only I
(B) Only II
(C) Both I and II
(D) Both are incorrect.


Answer: (D)

Explanation: Wait-die scheme: It is a non-preemptive technique for deadlock prevention. When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp smaller than that of Tj (That is Ti is older than Tj), otherwise Ti is rolled back (dies)
Wound-wait scheme: It is a preemptive technique for deadlock prevention. It is a counterpart to the wait-die scheme. When Transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp larger than that of Tj, otherwise, Tj is rolled back (Tj is wounded by Ti)
So, option (D) is correct.

Quiz of this Question


Share your thoughts in the comments