search
Log In
0 votes
64 views

Take a careful look at Fig. 6-11(b). If $D$ asks for one more unit, does this lead to a safe state or an unsafe one? What if the request came from $C$ instead of $D?$

in Operating System 64 views

1 Answer

0 votes

Given :               a= Safe                b= Safe                c= Unsafe

But If  Fig. 6-11(b) , D asks for one more unit then  Need Table is

      A     5
      B     4
      C     2
      D     2

 

we have only one unit left which can not satisfied any one of the Above process.. ………………

therefore If D asks for one more unit, does this lead to an unsafe State .

 if the request came from C instead of D then it lead to a Safe state  check below Need table is

      A      5
      B      4
      C      1
      D      3

Which can be easly Satisfied and lead to a Safe state.

Related questions

2 votes
0 answers
1
0 votes
2 answers
2
0 votes
1 answer
3
72 views
The banker’s algorithm is being run in a system with $m$ resource classes and $n$ processes. In the limit of large $m$ and $n,$ the number of operations that must be performed to check a state for safety is proportional to $m^{a} n^{b}.$ What are the values of $a$ and $b?$
asked Oct 30, 2019 in Operating System Lakshman Patel RJIT 72 views
...