GATE : Computer Science and IT

A system has 6 identical resourcesand Nprocesses competing for them. Each processcan request atmost 2 resources. Which one of the following values of N could lead to a deadlock? , A system has 6 identical resourcesand Nprocesses competing for them. Each processcan request atmost 2 resources. Which one of the following values of N could lead to a deadlock?

A system has 6 identical resourcesand Nprocesses competing for them. Each processcan request atmost 2 resources. Which one of the following values of N could lead to a deadlock?




Solution
D. None



Explanation

P1 --> 1

P2 --> 1

P3 --> 1

P4 --> 1

Even 4 processes can be in safe with 5 resources. So upto 5 processes there will be no deadlock.

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad