Quantcast
Channel: User 이호영 - Stack Overflow
Viewing all articles
Browse latest Browse all 10

What happens if a process is finished during the tims-slice in round robin algorithm?

$
0
0

There are three jobs, P1, P2, and P3, and I'm using round robin algorithm for scheduling these jobs. The time-slice(quantum) is 3, and the CPU burst time for each job is 7, 5, 10.

So it would be working like this:

0~3: P1

3~6: P2

6~9: P3

9~12: P1

12~14: P2(finished)

And what I want to know is what happens from 14. I'm sure that P3 is going to be scheduled at 14~15, but does the scheduler switch to P1 at 15? Or it starts to count 3 from 14 again and switch to P1 at 17?


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>