• edited by
1,759 views
1 1 vote


 

Option D) has been given as a correct option in the MSQ question but why the E's (arrival time = 4ms) turn was not placed after D?

2 Answers

Best answer
1 1 vote

AT- arrival time

BT - burst time

CT- completion time

TAT- turn around time  , TAT=CT-AT

WT-waiting time , WT = TAT-BT

RT- response time , RT=  first time when process got cpu - arrival time

key point to remember: try to solve round robin question by taking 1 interval time gap that will be benificial for you but how??

simple see always first put whichever process comes into queue first then  take out a process from front of queue then,

make a process run till time quantum when the process is running if some process has arrived u should put that process into the queue based on arrival time.

when a process completes its execution if it has still some burst time left then again put this process  in the rear/ back of the queue

then take out a process from front of the queue and make it run for the given time quantum.

• edited by
1 1 vote

At t = 3, process A's time quantum expires, causing it to be preempted and enqueued since it has not yet completed execution. At this moment, the ready queue contains: B, C, D, A.

Next, B is scheduled (now ready queue contains: C, D, A.) and runs until t = 6. Meanwhile, at t = 4, process E arrives and is added to the queue. As a result, the updated queue at t = 6 becomes C, D, A, E.

Consequently, after D finishes its time quantum, A gets scheduled before E.

Position:
Show:

Related questions

0 0 votes
3 3 answers
947
947 views
Mrityudoot asked Jan 24, 2024
947 views
Does Round Robin guarantee bounded waiting?
0 0 votes
1 1 answer
2.7k
2.7k views
anupamsworld asked Jun 6, 2022
2,679 views
Lets consider one situation where,OS is scheduling processes(P1,P2,P3...Pn) with Round Robin method and current running process is P1 and next scheduled process in queue ...
0 0 votes
0 0 answers
791
791 views
Prakhar Singh Gaharw asked Oct 21, 2018
791 views
processes 1,2,3,4,5 with burst time as 4,1,8,1,2 and arrival time as 0+ RoundRobin used with TQ=1 what will be arrival time chart for processes 1,2,3,4,5.
3 3 votes
3 3 answers
4.2k
4.2k views
Karan Dodwani 1 asked Aug 22, 2018
4,176 views
Consider a System using Round Robin scheduling with 10 Processes all arriving at the time 0. Each Process is associated with 20 identical Request. Each Process request co...