CS FundamentalsModerateGATE CS
Each process spends 50% of its time waiting for I/O, independently of the others. Under the simple model CPU utilisation = 1 − pⁿ, what is the smallest degree of multiprogramming n that gives at least 90% utilisation?
- A. 2
- B. 5
- C. 3
- D. 4
Correct answer: D. 4
1 − 0.5³ = 0.875 is just short, while 1 − 0.5⁴ = 0.9375 ≥ 0.9, so n = 4.
More Operating Systems questions
- Memory access takes 100 ns. A page fault occurs once per million accesses; servicing it takes 8 ms if the victim page is clean and 20 ms…
- An inode has 12 direct pointers, one single-indirect and one double-indirect pointer; blocks are 4 KB and pointers 8 bytes. What is the…
- A parent forks 3 children that each call exit(0) immediately; the parent then sleeps for a minute without calling wait() and without…
- Why is a test-and-test-and-set spinlock (spin on a plain read, and only try the atomic exchange when the lock looks free) usually faster…
- A lock-free stack pops with CAS(&top, old, old->next). Thread 1 reads top = A (A->next = B) and is delayed; thread 2 pops A, pops B, then…
- A low-priority task L holds a mutex. High-priority H blocks on it, and medium-priority M (which does not need the mutex) becomes ready…