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,14 @@
|
||||
Round Robin, time quantum = 100
|
||||
|
||||
PID AT BT CT TAT WT
|
||||
P1 0 8 8 8 0
|
||||
P2 0 8 16 16 8
|
||||
P3 0 8 24 24 16
|
||||
P4 0 8 32 32 24
|
||||
|
||||
Average waiting time : 12.00
|
||||
Average turnaround time : 20.00
|
||||
|
||||
Gantt chart:
|
||||
| P1 | P2 | P3 | P4 |
|
||||
0 8 16 24 32
|
||||
Reference in New Issue
Block a user