1 1 vote If the total number of resources available is 6 and each process requires 3 instances of a resource to complete execution. Then what is the number of processes that can exist in this system without causing a deadlock? Operating System deadlock-prevention-avoidance-detection operating-system + – Dhillu Thambi 907 views answer comment Share Follow Print See 1 comment 1 1 comment reply adarsh_1997 commented Nov 4, 2018 reply Follow flag 2? 0 0 replyShare Please log in or register to add a comment.
Best answer 2 2 votes let first find the minimum number of process so that their is deadlock. suppose each process is given 2 instance of resources(hold and wait->deadlock condition) n*2=6 n=3(minimum no of process so that system is in deadlock) so therefore max no of process with no deadlock=3-1=2 adarsh_1997 answered Nov 4, 2018 • selected Nov 5, 2018 by Dhillu Thambi adarsh_1997 comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Let no. of processes=x now give 2 resources to each process and 1 more resource to complete one of them as every process need 3. condition to avoid deadlock 2x+1<=6 x<=2.5 x=2 Peeyush Pandey answered Nov 4, 2018 Peeyush Pandey comment Share Follow 0 reply Please log in or register to add a comment.