CS FundamentalsHardGATE CS
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, 1), P5 (4, 2, 2). Under PREEMPTIVE priority scheduling (equal priorities served FCFS), what is the average turnaround time?
- A. 9.4 ms
- B. 8.8 ms
- C. 6.4 ms
- D. 7.4 ms
Correct answer: A. 9.4 ms
Schedule: P1 0-1 | P2 1-3 | P4 3-8 | P2 8-9 | P5 9-11 | P1 11-14 | P3 14-15. P5 has the same priority as the running P2 and does not preempt it. Average turnaround = 9.4 ms; the non-preemptive version gives 8.8.
More Operating Systems questions
- 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…
- Processes (arrival, burst): P1 (0, 8), P2 (1, 5), P3 (2, 2), P4 (4, 1), P5 (6, 4), scheduled by SRTF. How many times is a running process…
- Under FCFS, a long job L (burst 20) and three short jobs (burst 2 each) are scheduled. Case 1 arrivals: L at 0, S1 at 1, S2 at 1, S3 at 2…
- A 3-level feedback queue: Q0 is RR with quantum 4, Q1 is RR with quantum 8, Q2 is FCFS. New processes enter Q0; a process that uses its…
- Processes (arrival, burst): P1 (0, 3), P2 (1, 5), P3 (2, 2), P4 (4, 4). Which statement about the average waiting time is correct?