Suppose a system has not implemented any deadlock prevention and avoidances measurement. Therefore, it has to run the deadlock detection algorithm in case deadlock has occurred in a system. Following two strategies can be adopted to recover the system from a deadlock.
In your opinion, which option will be considered more suitable to recover the system from a deadlock? Write a concise and to the point answer with valid reasons.
Preempt some resources from one or more processes to break the deadlock.
In some cases, you may temporarily take the app away from its current owner and provide it with another process. In many cases, manual intervention may be required, especially for batch applications running on mainframes. The ability to take an app away from the process, have another process run, and return it without the process of realizing that it really depends on the type of app. Recovery in this way is often difficult or impossible. Choosing a configuration process depends largely on which one has the resources that can be easily restored. When the deadline is identified, it is easy to see which resources are needed. To recover, a process with the required source is passed back to a point before receiving another resource at the start of its previous experiment.
Comments
Leave a comment