The Gateway to Computer Science Excellence
0 votes
Consider a situation where there are 4 processes executing using RR scheduling. The processes are arriving at different intervals of time.

Now, suppose P3 arrives when P2 is executing(before completing its quantum) then what should be scheduled next P1 or P3?

P1 ------------------- P2-------------------- ??

                                      P3 arrives

When this same situation arises in case SRTF scheduling, where Burst time of P3 is < Burst time of P1, then what should be scheduled next(after P2) P1 or P3?
in Operating System by Boss (10.6k points) | 61 views
In RR scheduling execution of a process, it depends on TQ and the next process present in the ready queue.

In SRTF the selection of process is based on shortest burst time(preemptive mode)
So in case of RR: P1 will be scheduled and in case of SRTF: P3 will be scheduled. right?

In RR P1 is reschedule if P1 is having to remain some time.

in SRTF  P3 will schedule

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,317 answers
105,088 users