Rollback

Q1. Explain Deadlock Recovery Method of Rollback in Resource Preemption.

Ans. If we preempt a resource from a process, what should be done with that process? Clearly, it cannot continue with its normal execution, it is missing some needed resource. We must roll back the process to some safe state and restart it from that state.

Since, in general, it is difficult to determine what a safe state is, the simplest solution is a total rollback. Abort the process and then restart it. Although it is more effective to roll back the process only as far as necessary to break the deadlock, this method requires the system to keep more information about the state of all running processes.

Leave a Reply

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

93 Views
%d bloggers like this: