CS FundamentalsVery hardGATE CS (PYQ pattern)
Five processes with CPU bursts 5, 12, 3, 9 and 7 ms all arrive at time 0 in that order. Context switches are free. Among the quanta 2, 4, 6 and 12 ms, which gives the smallest average waiting time under Round Robin?
- A. 2 ms
- B. 4 ms
- C. 12 ms
- D. 6 ms
Correct answer: C. 12 ms
Average waiting times: q=2: 20.0 ms, q=4: 19.4 ms, q=6: 17.2 ms, q=12: 14.2 ms. Here q = 12 is exactly FCFS, which beats every smaller quantum on this burst set because interleaving delays the completion of each job.
More Operating Systems questions
- A 32-bit machine uses two-level paging with 10 + 10 + 12 address bits. For the running process, root-table entries 3 and 0x2FF are valid…
- Assume every fork() succeeds and output is not lost or duplicated. int x = 1; int main(void) { int p = &x; if (fork() == 0) { p += 2; if…
- Three periodic tasks (execution time, period = relative deadline), all released at t = 0: T1 (2, 6), T2 (3, 8), T3 (3, 12). They are…
- Which of the following statements about system calls and interrupts are correct? I. A system call enters the kernel through a trap…
- Which of the following statements about disk scheduling are correct? I. SSTF can starve requests far from the head. II. SCAN bounds the…
- A process maps a region starting at virtual address 0x40000000 whose size is 4 GB + 5 MB + 12 KB. The OS uses 1 GB, 2 MB and 4 KB pages…