CS FundamentalsVery hardGATE CS · Product Company SDE
Processes (arrival, burst): P1(0, 9), P2(5, 6), P3(1, 9), P4(6, 2). Using Round Robin with quantum 4 (a newly arrived process is queued before a pre-empted one), what is the average waiting time?
- A. 6
- B. 13.5
- C. 9.75
- D. 6.25
Correct answer: B. 13.5
Simulate the schedule on a Gantt chart; waiting = completion − arrival − burst. Round Robin with quantum 4: 13.5. Values for the other policies (FCFS 9.75, SJF 6.25, SRTF 6, RR(q=4) 13.5) are the distractors.
More Operating Systems questions
- A process has 3 frames, initially empty, and references pages 6 4 3 6 3 3 6 4 1 5 5 3. How many page faults occur under LRU replacement?
- A process has 4 frames, initially empty, and references pages 3 4 2 6 1 1 5 2 1 4 6 4 6 6. How many page faults occur under LRU replacement?
- A disk (tracks 0–199) has the head at 91 and pending requests [70, 142, 159, 58, 140, 42]. What is the total head movement under FCFS?
- A system has 40-bit virtual addresses, 4 KB pages and 4-byte page-table entries with a single-level page table. What is the size of the…
- A TLB lookup takes 10 ns, a memory access 200 ns, and the TLB hit ratio is 98%. With a single-level page table, what is the effective…
- A process has 4 frames, initially empty, and references pages 2 6 2 4 1 2 2 1 4 1 2 4 3 1 2. How many page faults occur under OPT…