Fair-share scheduling is a scheduling algorithm that was first designed by Judy Kay and Piers Lauder at Sydney University in the 1980s. It is a scheduling algorithm for computer operating systems that dynamically distributes the time quanta “equally” to its users.
Time quantam is the processor time allowed for a process to run. But in a round-robin scheduling where the time slices or time quanta are allocated equally in a circular order, due to the distribution of time slices in a circular manner, any equal amount of time quanta will produce a similar output, therefore, an arbitrary distribution is required in this scenario.
Specificity of Fair-share scheduling :
This algorithm equally distributes the processor time to its users, for instance, there are 5 users (A, B, C, D, E)each of them are simultaneously executing a process, the scheduler divides the CPU periods such that all the users get the same share of the CPU cycles (100%/5) that is 20%. Even though, a user moves onto the second while the other at the first, the algorithm is so specific that it ensures that this user is attributed with only 10% for the second process making it a total of 20%.
The scheduler logically divides an equal amount even though, another layer of partition is added, for example, if there were 3 groups present with different number of people in each group, the algorithm would still divide the same time for those groups, 100%/3= 33.33%, this 33.33% would be shared equally in the respective group depending on the number of users present in the group.
To sum up, fair-share scheduling is an efficient strategy that creates a consistent user experience.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Difference between Multi Level Queue Scheduling (MLQ) and Priority Scheduling
- Difference between Priority Scheduling and Round Robin (RR) CPU scheduling
- Multilevel Feedback Queue Scheduling (MLFQ) CPU Scheduling
- Difference between Priority scheduling and Shortest Job First (SJF) CPU scheduling
- Thread Scheduling
- CPU Scheduling Criteria
- Foreground-Background Scheduling
- First Come, First Serve – CPU Scheduling | (Non-preemptive)
- C-LOOK Disk Scheduling Algorithm
- Difference between SJF and LJF CPU scheduling algorithms
- Rate-monotonic scheduling
- LOOK Disk Scheduling Algorithm
- Program for Priority CPU Scheduling | Set 1
- Disk Scheduling Algorithms
- CPU Scheduling in Operating Systems
- Difference between EDF and LST CPU scheduling algorithms
- Deadline Monotonic CPU Scheduling
- Longest Job First (LJF) CPU scheduling algorithm
- Multilevel Queue (MLQ) CPU Scheduling
- Program for FCFS CPU Scheduling | Set 1
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.