Assume all processes arrived at time equals zero, using Round Robin CPU scheduling algorithm with time quantum = 3, do the following:
1. Draw Gantt chart.
2. Calculate average waiting time.
3. Which one is optimal and why?
4. What kind of scheduling algorithm optimization criteria can be seen in this example and how can we improve it?
Q. Consider a system with 3 resource types X, Y, and Z having 10 instances each. Given the following information, which process will finish last? Do you think the system is safe?
Max resources: X Y Z
3 2 4
2 1 2
3 4 2
1 5 2
Allocation:
X N 1 2
2 0 1
2 2 0
1 3 0
P, P P, Pi