Files

Round Robin scheduling (C++ and C)

Companion code for Round Robin Scheduling in C and 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