CS FundamentalsHardGATE CS (PYQ pattern)
Round Robin runs 10 always-runnable, CPU-bound processes; every context switch costs 0.5 ms and each process always uses its full quantum q. Two requirements: switching overhead must be at most 10% of CPU time, and after a process is preempted it must be running again within 50 ms (the gap contains the other 9 quanta and 10 switches). Which range of q satisfies both?
- A. 5 ms <= q <= 5.5 ms
- B. 4.5 ms <= q <= 5 ms
- C. 4.5 ms <= q <= 5.5 ms
- D. 4 ms <= q <= 5 ms
Correct answer: B. 4.5 ms <= q <= 5 ms
Overhead: 0.5 / (q + 0.5) <= 0.1 gives q >= 4.5 ms (taking 0.5 / q <= 0.1 wrongly gives q >= 5). Latency: 9q + 10 x 0.5 <= 50 gives q <= 5 ms (ignoring the switches gives q <= 5.56). So 4.5 <= q <= 5 ms.
More Operating Systems questions
- Six processes share identical units of one resource; each needs at most 4 units. Five of them request units one at a time, holding what…
- The disk has cylinders 0 to 199. The head is at 100, moving towards higher cylinders. Pending requests: 23, 89, 132, 42, 187, 70, 12. SCAN…
- With 3 frames (initially empty) the reference string is 2, 5, 3, 6, 2, 5, 4, 2, 4, 2, 1, 2, 5, 6, 6, 1, 2, 3, 6, 3, 4, 4. The clock…
- A file of 100,000 bytes is stored on a disk with 512-byte blocks. Under linked allocation each block holds a 4-byte next-pointer and 508…
- A 2^40-byte disk uses 4 KB blocks. Free space can be tracked either by a bitmap (1 bit per block) or by a plain list of free block…
- A 10,000 RPM disk has an average seek time of 5 ms and a sustained transfer rate of 100 MB/s (1 MB = 10^6 bytes). It serves a stream of…