Question 124Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

Given total number of instances of a resource to be 18, three processes (P1, P2, and P3) and the resource requirement and allocation table are given below.…

Given total number of instances of a resource to be 18, three processes (P1, P2, and P3) and the resource requirement and allocation table are given below. Which of the following orders of process execution forms a safe (deadlock free) sequence? Process – Max. Need – Current Allocation P1 – 12 – 7 P2 – 10 – 5 P3 – 5 – 4
  1. A<P1, P2, P3>
  2. B<P3, P1, P2>
  3. C<P1, P3, P2>
  4. D<P2, P1, P3>
Show answerHide answer

Correct answer: (B) <P3, P1, P2>

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 124 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.