Add os/round-robin: Round Robin scheduler in C++ and C with Gantt chart, quantum sweep and captured output

This commit is contained in:
ankurm
2026-11-26 00:42:10 +05:30
parent f784f9b6ee
commit 9ed8479cec
24 changed files with 513 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
Round Robin, time quantum = 1
PID AT BT CT TAT WT
P1 0 6 12 12 6
P2 0 4 10 10 6
P3 0 2 6 6 4
Average waiting time : 5.33
Average turnaround time : 9.33
Gantt chart:
| P1 | P2 | P3 | P1 | P2 | P3 | P1 | P2 | P1 | P2 | P1 |
0 1 2 3 4 5 6 7 8 9 10 12