Turns on a shared processor

A single-processor laboratory computer uses round-robin scheduling: it gives the process at the front of the ready queue up to a 2 ms time quantum. The processor starts when the first process arrives.


New arrivals join the back of the ready queue and do not interrupt the running process. When a quantum expires, an unfinished process joins the back of the queue, behind processes already waiting. A completed process leaves the system immediately. All processes need only processor time; there are no device waits, and switching between processes takes zero time.


Process

Arrival time (ms)

Required processor time (ms)

A

0

5

B

1

3

C

3

2


Arrival times of processes A, B, and C are shown on a time axis.


Find the completion time of each process, measured from time zero. Enter each answer in milliseconds, to the nearest millisecond.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Operating Systems Questions: