7,662 views
9 votes
9 votes

Consider the following process and resource requirement of each process.

Predict the state of this system, assuming that there are a total of $5$ instances of resource type $1$ and $4$ instances of resource type $2$.

  1. Can go to safe or unsafe state based on sequence
  2. Safe state
  3. Unsafe state
  4. Deadlock state

7 Answers

1 votes
1 votes

This is definitely in unsafe state. The state is not a deadlock state, since every process is not waiting for other processes to release the resources (we have some resources available to fulfill some need). This violates the condition for deadlock : 

Circular Wait - A set of processes ${ P0, P1, P2, . . ., PN }$ must exist such that every $P[ i ]$ is waiting for P[ ( i + 1 ) % ( N + 1 ) ].

However, after allocating the remaining resources, the system may go to deadlock, but currently we can only say that it is in unsafe state.

So, the answer is (C).

0 votes
0 votes
There does not exist any safe sequence so the system is in unsafe state. It may or may not be in dead lock state
0 votes
0 votes
Answer is A because it can go to safe or unsafe according to sequence
Answer:

Related questions

6 votes
6 votes
4 answers
1
makhdoom ghaya asked May 2, 2016
3,223 views
Which of the following is not a necessary condition for deadlock?Mutual exclusionReentrancyHold and waitNo pre-emption
5 votes
5 votes
7 answers
3
8 votes
8 votes
9 answers
4