We wish to schedule three processes P1, P2 and P3 on a uniprocessor system.…

GATE · 2005 · IT

We wish to schedule three processes P1, P2 and P3 on a uniprocessor system. The priorities, CPU time requirements and arrival times of the processes are as shown below.

image.png

We have a choice of preemptive or non-preemptive scheduling. In preemptive scheduling, a late-arriving higher priority process can preempt a currently running process with lower priority. In non-preemptive scheduling, a late-arriving higher priority process must wait for the currently executing process to complete before it can be scheduled on the processor.

What are the turnaround times (time from arrival till completion) of P2 using preemptive and non-preemptive scheduling respectively.

  1. A.

    30 sec, 30 sec

  2. B.

    30 sec, 10 sec

  3. C.

    42 sec, 42 sec

  4. D.

    30 sec, 42 sec

Attempted by 235 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…