2 votes 2 votes Consider the following Resource Allocation Graph (RAG) and set of sequences. I) <P1,P4,P3,P5,P2> II) <P1,P4,P3,P2,P5> III) <P1,P4,P2,P5,P3> IV) <P1,P4,P5,P2,P3> Which of the above sequences can be safe? soumayan bandhu asked Jan 15, 2018 soumayan bandhu 518 views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments srivivek95 commented Jan 15, 2018 reply Follow Share NEED ALLOCATION AVAILABLE R1 R2 R3 R1 R2 R3 R1 R2 R3 P1 0 0 0 0 1 0 0 2 0 P2 1 0 0 2 0 0 P3 0 0 1 1 2 0 P4 0 0 0 0 1 1 P5 0 0 1 0 0 1 Now, check all the sequences with the following conditions: if NEED[Pi]<=AVAILABLE then AVAILABLE=AVAILABLE + ALLOCATION[Pi] else break // sequence not possible Sequence I & II are the safe sequence 1 votes 1 votes soumayan bandhu commented Jan 16, 2018 reply Follow Share Thanks 0 votes 0 votes PiratedVirus commented Dec 13, 2018 reply Follow Share graph image in question is not loading. here it is: 0 votes 0 votes Please log in or register to add a comment.