Answer to Question #225231 in UNIX/Linux Programming for ifra

Question #225231

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.

  1. Abort the one or more processes to break the circular wait.
  2. Preempt some resources from one or more processes to break the 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.



1
Expert's answer
2021-08-12T02:33:10-0400

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.




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS