CS FundamentalsHardProduct-company MCQ pattern

Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Round Robin, quantum 4. A context switch costs 1 time unit and happens whenever the CPU moves to a different process (none at t = 0, none when the same process continues). A process arriving at the same instant a quantum expires joins the ready queue before the preempted process. What is the average turnaround time?

  1. A. 18.75
  2. B. 20.00
  3. C. 17.00
  4. D. 15.25

Correct answer: A. 18.75

A 0–4, cs, B 5–8 (done), cs, C 9–13, cs, D 14–18, cs, A 19–20 (done), cs, C 21–25 (done), cs, D 26–28 (done). Turnaround = A 20, B 7, C 23, D 25 → 75/4 = 18.75. Without overhead the schedule ends at 22 and gives 15.25.

More Operating Systems questions

Exams that ask this topic