Get premium membership and access questions with answers, video lessons as well as revision papers.

What must the banker's algorithm know a priori in order to prevent deadlock?

      

What must the banker's algorithm know a priori in order to prevent deadlock?

  

Answers


Faith
The banker's algorithm must calculate whether giving a process a resource will lead to a safe state or
not. In order to work, it must know how many resources the process in question may be granted at any
one time, and how many resources the OS is able to give. This is difficult because how can we know
what future requests might be?
To see if a state is safe – the algorithm checks to see if enough resources exist to satisfy a process. If
so, the “loans” are assumed to be “repaid”.
Titany answered the question on April 26, 2022 at 09:27


Next: Assuming the operating system detects the system is deadlocked, what can the operating system do to recover from deadlock?
Previous: Describe the general strategy behind deadlock prevention, and give an example of a practical deadlock prevention method

View More Operating Systems Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions