process scheduling python Shortest Remaining Time First code example
Example 1: shortest remaining time first scheduling program in python
Processes Burst time Waiting time Turn around time
1 6 3 9
2 8 16 24
3 7 8 15
4 4 0 3
Average waiting time = 6.75
Average turn around time = 12.75
Example 2: shortest remaining time first scheduling program in python
Processes Burst time Waiting time Turn around time
1 4 3 9
2 7 16 24
3 3 8 15
4 5 0 3
Average waiting time = 6.75
Average turn around time = 12.75