CS FundamentalsHardGATE CS
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 non-preemptive SJF, what is the average turnaround time?
- A. 2.4 ms
- B. 5.2 ms
- C. 12 ms
- D. 4 ms
Correct answer: B. 5.2 ms
Schedule: A 2-8 | C 8-9 | B 9-11 | D 12-15 | E 15-17 (D and E arrive after the CPU becomes free at 11, so the CPU idles until 12). Turnaround = completion - arrival; the average is 5.2 ms. Averaging completion times or waiting times are the common slips.
More Operating Systems questions
- 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…
- Processes (arrival, burst) in ms: A (0, 4), B (1, 3), C (2, 2). Round Robin with quantum 2 ms; every switch from one process to a…