edited by
397 views
1 votes
1 votes
Consider an operating system containing $n$ processes each requiring $4$ resources. The maximum number of processes that can be executed without any deadlock if there are $21$ resources is available  ______
edited by

1 Answer

Best answer
1 votes
1 votes

The standard Rule is :

  A system with m resources of same type being shared by n processes.  Resources can be requested and released by processes only on at a time . 

The system is deadlock free if and only if --> The sum of all max needs is < m+n " 

Now here in this question 

1. n processes each requiring 4 resources. So  total maximum need  are 4n.

2. There are 21 resources are in total which is shared by n processes.

so applying above stated Rule 

4n < 21+n 

=> 3n< 21 

=> n < 7 hence number of process must be less than 7 , which is 6 at maximum .( asked in the question) .

selected by
Answer:

Related questions

2 votes
2 votes
3 answers
1
Bikram asked Dec 26, 2016
1,031 views
In a paged memory, the page hit ratio is $0.35$. The time required to service the page fault is $100$ ns. Time required to access a page in primary memory is $10$ ns.The ...
1 votes
1 votes
1 answer
3