Recovery of Deadlock through Resource Preemption

Q3. Explain Recovery of Deadlock through Resource Preemption.

Ans. To eliminate deadlocks using resource preemption, we successively preempt some resources from processes and give them resources to other processes until the deadlock cycle is broken.

If preemption is required to deal with deadlocks, then three issues need to be addressed:

1. Selecting a Victim

2. Rollback

3. Starvation

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: