Add os/round-robin: Round Robin scheduler in C++ and C with Gantt chart, quantum sweep and captured output
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
Round Robin, time quantum = 10
|
||||
|
||||
PID AT BT CT TAT WT
|
||||
P1 0 10 10 10 0
|
||||
P2 0 29 61 61 32
|
||||
P3 0 3 23 23 20
|
||||
P4 0 7 30 30 23
|
||||
P5 0 12 52 52 40
|
||||
|
||||
Average waiting time : 23.00
|
||||
Average turnaround time : 35.20
|
||||
|
||||
Gantt chart:
|
||||
| P1 | P2 | P3 | P4 | P5 | P2 | P5 | P2 |
|
||||
0 10 20 23 30 40 50 52 61
|
||||
Reference in New Issue
Block a user