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,10 @@
|
||||
# Round Robin scheduling (C++ and C)
|
||||
|
||||
Companion code for [Round Robin Scheduling in C and C++](https://ankurm.com/implementing-round-robin-scheduling-algorithm-in-c/).
|
||||
The full explanation, dry run and viva questions live in that post.
|
||||
|
||||
scripts/run-all.sh # builds rr.cpp, rr.c and the legacy program, regenerates output/
|
||||
|
||||
* `rr.cpp` / `rr.c` — same algorithm, same output; input is `n`, then `arrival burst` per process, then the quantum
|
||||
* `legacy/old_rr_tick_loop.cpp` — the earlier tick-loop version, kept as published (correct only when every arrival is 0)
|
||||
* `input/` — sample workloads, `output/` — captured results quoted in the post
|
||||
Reference in New Issue
Block a user