The Gateway to Computer Science Excellence
+1 vote
93 views

in Operating System by (195 points)
edited by | 93 views
0
There will be more than one safe sequence (4 to be precise), try with banker's algorithm..

3 Answers

0 votes
D) more than 2 safe sequence.

First P3 shall complete and then other 3 processes in any order.

safe sequences:

(P3 P1 P2 P4), (P3 P1 P4 P2)

(P3 P2 P4 P1), (P3 P2 P1 P4)

(P3 P4 P2 P1), (P3 P4 P1, P2)
by (245 points)
0 votes

After P3 more than one option possible as P2,P1,P4 all can be satisfied so many combinations possible hence the answer. Hope it helps!

by (389 points)
0 votes
(D)More than 2 safe sequences exist.

Explanation: After creating the Request and allocated table from the request allocated graph given above we can see R1, R2 and R3 are left with only 0,1 and 0 resources respectively. With this, we only can satisfy the need for P3. After P3 executes it releases 1 instance of R2 and one instance of R3 making the available resources of R1, R2, and R3 as 0,2 and 1 respectively. With this, we can satisfy the requirement of all the processes so we can schedule any one of them so there will be more than two safe sequences possible.
by (33 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,542 answers
195,693 comments
101,536 users