CS FundamentalsHardGATE CS
Processes (arrival, burst): A (0, 5), B (1, 7), C (3, 2), D (4, 6). Round Robin with quantum 4 (new arrivals queued before a preempted process). What is the average turnaround time?
- A. 13.25 ms
- B. 12.25 ms
- C. 10.75 ms
- D. 13.75 ms
Correct answer: D. 13.75 ms
Gantt: A 0-4 | B 4-8 | C 8-10 | D 10-14 | A 14-15 | B 15-18 | D 18-20. Average turnaround = 13.75. With quantum 1 it is 13.25 and with quantum 6 it is 12.25.
More Operating Systems questions
- Processes (arrival, burst, priority; smaller number = higher priority): P1 (0, 3, 2), P2 (1, 6, 1), P3 (2, 4, 3), P4 (12, 2, 1), P5 (13…
- Processes (arrival, burst): A (0, 6), B (2, 6), C (5, 9), D (5, 8), E (5, 2). Under non-preemptive HRRN, what is the average waiting time?
- Two processes each alternate CPU and I/O: P1 = CPU 4, I/O 6, CPU 2; P2 = CPU 3, I/O 3, CPU 5 (ms). Both arrive at 0, P1 first; scheduling…
- Reference string: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1. With 3 frames (initially empty), what are the page-fault…
- Reference string: 1, 2, 1, 3, 1, 2, 4, 5, 4, 2, 5, 3, 4, 2, 3 frames, initially empty. LFU replacement is used: the victim is the resident…
- Reference string: 0, 4, 1, 4, 2, 4, 3, 4, 2, 4, 0, 4, 1, 4, 2, 4, 3, 4. How many page faults does LRU give with 2, 3, 4 and 5 frames…