Home » Operating Systems » Operating systems miscellaneous » Question

Operating systems miscellaneous

  1. Suppose n processes, p1, p2..., pn share m identical resource units, which can be reserved and released one at a time. The maximum resource requirement of process Pi is si, where Si > 0. Which one of the following is a sufficient condition for ensuring that deadlock does not occur?
    1. ∀ i , si < m
    2. ∀ i , si < n

Correct Option: C

For every Pi Si is maximum resource requirement where Si > 0. To allot resources to all processes without any deadlock situation is

i.e. sum of all maximum resource requirement should be less than m + n. Hence (c) is correct option.



Your comments will be displayed only after manual approval.