Round Robin is a CPU scheduling algorithm where each process is assigned a fixed time slot in a cyclic way.
Illustration:
How to compute below times in Round Robin using a program?
In this post, we have assumed arrival times as 0, so turn around and completion times are same.
The tricky part is to compute waiting times. Once waiting times are computed, turn around times can be quickly computed.
Steps to find waiting times of all processes:
Once we have waiting times, we can compute turn around time tat[i] of a process as sum of waiting and burst times, i.e., wt[i] + bt[i]
Round-robin scheduling algorithm is used to schedule process fairly each job a time slot or quantum and the interrupting the job if it is not completed by then the job come after the other job which is arrived in the quantum time that makes these scheduling fairly.
Note:
Advantages:
Disadvantages:
Quantum time is 2 this means each process is only executing for 2 units of time at a time.
How to compute these process requests:
After all these we get the three times which are:
How to implement in a programming language
10 videos|99 docs|33 tests
|
1. What is Round Robin scheduling? |
2. How does Round Robin scheduling work? |
3. What are the advantages of Round Robin scheduling? |
4. What are the limitations of Round Robin scheduling? |
5. How can the time quantum affect Round Robin scheduling performance? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|