A small C++ project that simulates CPU scheduling and computes basic stats over generated workloads.
scheduler.cpp– main scheduler implementationcompute_stats.cpp– compute summary statistics over runsbaseline.cpp– a baseline/reference implementationdraftScheduler1.cpp,draftScheduler2.cpp– prototyping versionsinputGenerator.py– generates input for testingdata_1111.txt,data_2222.txt,data_3333.txt– example inputstest.sh– convenience script to build/run tests
Use any modern C++ compiler:
# Build main scheduler
g++ -O2 -std=c++17 scheduler.cpp -o scheduler# Run with a provided dataset
./scheduler < data_1111.txt# Build and run stats
g++ -O2 -std=c++17 compute_stats.cpp -o compute_stats
./compute_stats