CS FundamentalsVery hardProduct company interview · GATE level

Each process in a system spends 70% of its time waiting for I/O, independently of the others. Using the model CPU utilisation = 1 - p^n, what is the smallest degree of multiprogramming n that achieves at least 75% CPU utilisation, and what utilisation does it give?

  1. A. n = 5, about 83%
  2. B. n = 3, about 66%
  3. C. n = 2, about 51%
  4. D. n = 4, about 76%

Correct answer: D. n = 4, about 76%

With p = 0.7: n = 1 gives 30%, n = 2 gives 1 - 0.49 = 51%, n = 3 gives 1 - 0.343 = 65.7%, n = 4 gives 1 - 0.2401 = 76%. So 4 processes are the minimum. The model assumes there is enough memory for all of them; once added processes no longer fit, page faults raise the effective I/O wait and utilisation falls - the onset of thrashing. Working the formula as p x n or using 0.3 as the wait probability gives the other answers.

More Operating Systems questions

Exams that ask this topic