CS FundamentalsHardGATE CS
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. Case 2 arrivals: S1 at 0, S2 at 0, S3 at 1, L at 2. What are the average waiting times in Case 1 and Case 2?
- A. 2.25 and 15.5 ms
- B. 16.5 and 2.25 ms
- C. 15.5 and 3 ms
- D. 15.5 and 2.25 ms
Correct answer: D. 15.5 and 2.25 ms
Case 1: L waits 0, S1 waits 19, S2 21, S3 22, average 15.5. Case 2: S1 0, S2 2, S3 3, L 4, average 2.25. This is the convoy effect: short jobs stuck behind a long one inflate FCFS waiting time.
More Operating Systems questions
- 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?
- Round Robin is used with quantum q = 10 ms and context-switch time s = 2 ms. All processes are CPU-bound with very long bursts, and the…
- Round Robin with quantum q and context-switch time s is used; every process does exactly one CPU burst of T ms with T < q. What is the CPU…
- Processes (arrival, burst): P1 (0, 5), P2 (1, 3), P3 (3, 6), P4 (4, 2), P5 (10, 4), scheduled by SRTF. During the first 12 ms (time 0 to…
- Round Robin with quantum 3 ms; processes (arrival, burst): P1 (0, 8), P2 (2, 5), P3 (4, 2), P4 (6, 4). A process arriving at the instant a…