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

2018

Consider a system having m resources of the same type. These resources are shared by 3 processes A, B, C which have peak time demands of 3, 4, 6 respectively. The minimum value of m that ensures deadlock will never occur is

  1. A.

    11

  2. B.

    12

  3. C.

    13

  4. D.

    14

Attempted by 427 students.

Show answer & explanation

Correct answer: A

If A has 2, B has 3, C has 5 then a deadlock will occur i.e., 2+3+5=10.If we have one extra resource then a deadlock will not occur i.e., 10+1=11.If we have equal (or) more than 11 resources then deadlock will never occur.

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

Explore the full course: Isro