CS FundamentalsVery hardGATE CS (PYQ pattern)
Round Robin with quantum 4 ms; processes (arrival, burst) in ms: A (0, 11), B (2, 6), C (3, 3), D (5, 9), E (8, 2). A process that arrives while another is running enters the queue before the preempted one. Which process has the largest waiting time, and what is it?
- A. A, 15 ms
- B. D, 17 ms
- C. B, 15 ms
- D. E, 11 ms
Correct answer: B. D, 17 ms
Completion times are {'C': 11, 'E': 21, 'B': 23, 'A': 26, 'D': 31}; waiting = completion - arrival - burst gives {'A': 15, 'B': 15, 'C': 5, 'D': 17, 'E': 11}, so D waits longest.
More Operating Systems questions
- The head is at cylinder 50. Pending requests in arrival order: 82, 170, 43, 140, 24, 16, 190. By how many cylinders is the total head…
- NRU replacement runs with 3 frames (initially empty). Each page has bits (R, M): R is set on every reference, M on every write, and a…
- Round Robin runs 10 always-runnable, CPU-bound processes; every context switch costs 0.5 ms and each process always uses its full quantum…
- 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…