CS FundamentalsModerateGATE CS (PYQ pattern)
On a single-CPU system processes arrive at 3 per second in steady state, on average 6 processes sit in the ready queue (not counting the one running), and each process needs 0.2 s of CPU in total. Treating the system as one queue plus one server, what are the average time from arrival to completion and the CPU utilisation?
- A. 2.0 s and 60%
- B. 2.2 s and 20%
- C. 2.2 s and 60%
- D. 1.8 s and 60%
Correct answer: C. 2.2 s and 60%
Little's law on the queue alone: Wq = Lq / lambda = 6 / 3 = 2 s. Adding the 0.2 s of service gives 2.2 s. Utilisation = lambda x S = 3 x 0.2 = 0.6. 2.0 s forgets the service time; 1.8 s subtracts it; 20% is S alone.
More Operating Systems questions
- Stride scheduling with stride = 6000 / tickets: A has 100 tickets, B 200 and C 300. All passes start at 0; each quantum the process with…
- A CFS-like scheduler picks the runnable task with the smallest virtual runtime and runs it for a 4 ms slice, then adds 4 x 1024 / weight…
- Three tasks share two resources under the priority ceiling protocol (priorities t1 > t2 > t3). t3 has a 4 ms critical section on R1 and a…
- Rate-monotonic tasks (C, T = D, worst-case blocking B): t1 (2, 5, 2), t2 (2, 8, 2), t3 (4, 12, 0). Response time R = C + B + sum over…
- Eight independent jobs with lengths 7, 6, 5, 5, 4, 3, 3, 2 are scheduled on 3 identical processors by LPT (longest job first onto the…
- Rate-monotonic tasks (C, period = deadline) T1 (1, 3), T2 (1, 5), T3 (3, 15) are released together at t = 0. How many times is T3…