10,896 views

7 Answers

Best answer
18 votes
18 votes

If the system is deadlocked, it implies that each process is holding one resource and is waiting for one more. Since there are 3 processes and 4 resources, one process must be able to obtain two resources. This process requires no more resources and therefore it will return its resources when done.

Hence,Option(A)deadlock can never occur.

selected by
4 votes
4 votes
  1. Deadlock can never occur
4 votes
4 votes
To make a system deadlock free, assign each process with one less then their max need. After doing so if we are left with one or more resources then there is no deadlock.

Assign 1 resource (max need -1) to each process.

allocated resources=1+1+1=3

we are still left with 1 resource to avoid deadlock.

so deadlock can never occur. Answer (A)
2 votes
2 votes
Deadlock will never happen in such problem.

Suppose we hve three problem like P1,P2 and P3 now allocate each one only 1 unit and one unit is remaining nd this remaining can be given to any one to complete its execution and release the resources by which another can use it.So Deadlock will never be happen in such satuation.
Answer:

Related questions

14 votes
14 votes
5 answers
1
asu asked Jul 4, 2016
9,111 views
With single resource, deadlock occursif there are more than two processes competing for that resourcesif there are only two processes competing for that resourcesif there...
8 votes
8 votes
3 answers
2
Arjun asked Jul 6, 2016
10,783 views
At a particular time of computation the value of a counting semaphore is 7. Then 20 $P$ operations and $x$ $V$ operations were completed on this semaphore. If the new val...
17 votes
17 votes
2 answers
3
go_editor asked Jul 6, 2016
9,062 views
For the real time operating system, which of the following is the most suitable scheduling scheme?Round robinFirst come first servePre-emptiveRandom scheduling