search
Log In
0 votes
98 views
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 98 views
0
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)
0
So in case of RR: P1 will be scheduled and in case of SRTF: P3 will be scheduled. right?
1

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

0 votes
2 answers
1
672 views
If there are n processes in the ready queue and the time quantum is q, then each process gets 1/n of the CPU time in chunks of at most q time units.Each process must wait no longer than (n − 1) q time units until its next time quantum. (Please ... every 100 milliseconds. Can someone please explain this in a simple way, I'm not getting how each process will get 20 milliseconds every 100 ms?
asked Jul 8, 2018 in Operating System iarnav 672 views
0 votes
1 answer
2
313 views
Let's say we have four processes as (P1, P2, P3, P4) and have Arrival time as (0,1,2,3) respectively, but all of them has same CPU Burst time as (10ms) then does SRTF will simply be behaving like FCFS?
asked Jul 17, 2018 in Operating System iarnav 313 views
2 votes
1 answer
3
366 views
How are user level threads scheduled?
asked Jan 27, 2018 in Operating System _jerry 366 views
2 votes
1 answer
4
240 views
WHEN A PROCESS GOES FOR IO(INPUT/OUTPUT), A DIFFERENT PROCESS IS SCHEDULED TO A PROCESSOR. DOES IT HAPPEN IN ALL THE THREE IO MODES- INTERRUPT DRIVEN, PROGRAMMED IO AND DMA?? PLEASE CAN ANYONE TELL THIS IN DEPTH.
asked Apr 4, 2017 in Operating System sushmita 240 views
...