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
@@ -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