2,775 views
4 votes
4 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

1 Answer

0 votes
0 votes

Answer is option (a). A safe sequence will not start with P3 here because, P3 needs 1 resource of C, but for C, none is available at present. If P1 completes and releases all its currently held resources, then P3 can proceed. So here P1, P3, P0, P4, P2 is a safe sequence.

Related questions

3 votes
3 votes
1 answer
2
Nishtha_Agarwal asked Jan 4, 2019
2,260 views
Which option is correct?
3 votes
3 votes
1 answer
3
0 votes
0 votes
0 answers
4
$ourav asked May 18, 2016
1,246 views
Suppose a system has m resources and n processes. The Banker's algorithm was used to check the state for safety, which was found to be proportional to $m^{a}n^{b}$ for su...