Consider the following processes with time slice of 4 milliseconds (I/O…

2013

Consider the following processes with time slice of 4 milliseconds (I/O requests are ignored):

image.png

The average turnaround time of these processes will be

Answer: B. 18.25 millisecondsUsing Round Robin scheduling with a time slice of 4ms, we trace the execution to find completion times. Process B finishes at t=8, A at t=21, D at t=27, and C…

  1. A.

    19.25 milliseconds

  2. B.

    18.25 milliseconds

  3. C.

    19.5 milliseconds

  4. D.

    18.5 milliseconds

Attempted by 80 students.

Show answer & explanation

Correct answer: B

Using Round Robin scheduling with a time slice of 4ms, we trace the execution to find completion times. Process B finishes at t=8, A at t=21, D at t=27, and C at t=28. Turnaround Time (TAT) is Completion Time minus Arrival Time: A(21-0)=21, B(8-1)=7, C(28-2)=26, D(27-3)=24. The sum of TATs is 78, so the average is 19.5 ms.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor Computer Science Paper 2

Loading lesson…