CS FundamentalsHardGATE CS
Processes (arrival, burst) in ms: P1 (0, 10), P2 (1, 6), P3 (3, 2), P4 (5, 4), P5 (6, 1). Under preemptive SJF (SRTF), what is the average waiting time? (Ties in remaining time go to the process that arrived earlier.)
- A. 4.2 ms
- B. 7.2 ms
- C. 10.2 ms
- D. 8.4 ms
Correct answer: A. 4.2 ms
SRTF schedule: P1 0-1 | P2 1-3 | P3 3-5 | P2 5-6 | P5 6-7 | P2 7-10 | P4 10-14 | P1 14-23. Waiting = turnaround - burst for each process; the average is 4.2 ms. The trap values are non-preemptive SJF (7.2), FCFS (10.2) and RR q=2 (8.4).
More Operating Systems questions
- Processes (arrival, burst) in ms: A (2, 6), B (3, 2), C (4, 1), D (12, 3), E (13, 2). The CPU is idle until the first arrival. Under…
- Round Robin, quantum 3 ms. Processes (arrival, burst): P1 (0, 7), P2 (1, 5), P3 (2, 3), P4 (4, 6). A process arriving at the same instant…
- Three CPU-bound processes arrive at time 0 in the order A (burst 5), B (burst 3), C (burst 8). Round Robin with quantum 2 is used. Not…
- Processes (arrival, burst): P1 (0, 3), P2 (2, 6), P3 (4, 4), P4 (6, 5), P5 (8, 2). Under non-preemptive Highest Response Ratio Next…
- Processes (arrival, burst, priority) with a smaller number meaning higher priority: P1 (0, 4, 3), P2 (1, 3, 2), P3 (2, 1, 4), P4 (3, 5…
- Processes (arrival, burst): P1 (0, 6), P2 (1, 4), P3 (2, 7), P4 (3, 2). Round Robin with quantum 2 ms (new arrivals join the queue before…