Round robin: a special case as two processed one used up it time quantum and the othe

Status
Not open for further replies.

Osawa

Junior Member level 1
Joined
Dec 1, 2013
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,761
I need help with this.
Round robin: a special case as two processed one used up it time quantum and the other arrives at the same time.
For example, we has the following processes:

Process P1:
+ Arrival time: 0
+ Burst time: 7
Process P2:
+ Arrival time: 5
+ Burst time: 7
Assuming that time quantum q = 5 and after time quantum ending if a process doesn't complete it is added to at the end of the queue.

My confusion is about at the time 5. At this time, time quantum of P1 expires and P2 also arrives. What should come the queue first?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…