CS FundamentalsVery hardGATE CS (PYQ pattern)
Round Robin with quantum 4 ms. Processes (arrival, burst) in ms: P1 (0, 7), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (16, 3). A process that arrives at the same instant a quantum expires is placed in the ready queue BEFORE the preempted process. Context switches take no time. What is the average waiting time?
- A. 11.2 ms
- B. 17.2 ms
- C. 11.6 ms
- D. 12.6 ms
Correct answer: C. 11.6 ms
Timeline (finish times): {'P2': 8, 'P1': 19, 'P5': 26, 'P4': 27, 'P3': 28}. Waiting = turnaround - burst, averaged gives 11.6; the opposite tie-break gives 11.2.
More Operating Systems questions
- Periodic tasks (execution time, period = deadline): T1 (2, 5), T2 (4, 7). Which statement is correct?
- Three periodic tasks (execution time, period = deadline) are given: A (1, 4), B (2, 6), C (3, 12). Which statement is correct?
- A system has R identical units of one resource. Four processes need at most 3, 4, 2 and 5 units. Each process requests units TWO at a time…
- Banker's algorithm: 5 processes, resource types A, B, C with totals (10, 5, 7). Allocation / Maximum: P0 (0,1,0)/(7,5,3), P1…
- A disk has cylinders 0 to 199. The head is at cylinder 60 moving upward. Pending requests: 18, 150, 72, 41, 177, 95, 33, 124. C-LOOK…
- FIFO page replacement is run on the reference string 3, 4, 2, 6, 1, 3, 4, 6, 7, 1, 1, 5, 3, 4, 7, 2, 1, 7 with an initially empty memory…