Consider a system having m resources of the same type. These resources are…

2012

Consider a system having m resources of the same type. These resources are shared by 3 processes A, B and C which have peak demands of 3, 4 and 6 respectively. For what value of m deadlock will not occur?

  1. A.

    7

  2. B.

    9

  3. C.

    10

  4. D.

    13

Attempted by 105 students.

Show answer & explanation

Correct answer: D

To prevent deadlock, calculate the minimum resources needed using the formula sum(max_need - 1) + 1. For processes with demands of 3, 4, and 6, this equals (2) + (3) + (5) + 1 = 11 resources. Any value of m greater than or equal to 11 ensures at least one process can complete.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor