retagged by
1,262 views
1 votes
1 votes

Consider the following system snapshot

Which of the following is a safe sequence?

  • P1, P3, P0, P4, P2
  • P3, P1, P4, P0, P2
  • P3, P4, P1, P0, P2
  • All of these

My question is how can the need of p3 can be satisfied first when C available is 0 

retagged by

2 Answers

Best answer
1 votes
1 votes

Here in this question we have to find safe sequence means if all the process satisfied  than it is safe otherwise it is unsafe state.

 Here only possibe safe sequence start with only P1  but not start with P3

p1--->p3--->p0---->p4---->p2 is correct safe sequence

and option A is correct.

edited by

Related questions

2 votes
2 votes
0 answers
3
Rishabh Gupta 2 asked Nov 25, 2017
550 views
In any of the deadlock prevention schemes, is it possible that the request will be granted even if it leaves the system to an unsafe state (but not in deadlock state)?