Consider a system having "n" resources of same type. These resources are…

2009

Consider a system having "n" resources of same type. These resources are shared by 3 processes, A, B, C. These have peak demands of 3, 4, and 6 respectively. For what value of "n" deadlock won't occur

  1. A.

    15

  2. B.

    9

  3. C.

    10

  4. D.

    11

Attempted by 164 students.

Show answer & explanation

Correct answer: D

To prevent deadlock, the total number of resources (n) must exceed the sum of maximum resources each process can hold without completing. For each process, this is (peak demand - 1). Process A needs 3-1=2, Process B needs 4-1=3, and Process C needs 6-1=5. The sum is 2+3+5 = 10. If n > 10, at least one process can proceed to completion. Thus, the minimum value for n is 11.

Explore the full course: Isro