How jmpromm/cs3502-p2-cpu-scheduler works
This is a console CPU scheduling simulator comparing six algorithms across generated CPU-bound, I/O-bound, and mixed workloads. The principal workflow creates or selects a workload, runs each scheduler, calculates performance metrics, and presents and exports results; a separate charting script turns the summary CSV into plots. The graph follows relationships visible in the excerpts and README. It does not infer internal details of unsampled code, such as the chart script’s runtime relationship to the simulator.
Main entry points: main.py CLI and experiments · schedulers.py Algorithm suite · export_results.py CSV export · make_charts.py Chart generation
Components 11
Simulation workflow
- CLI and experiments
main.py - Workload generation
workloads.py
Scheduling engine
- Process model
process_model.py - Algorithm suite
schedulers.py - Performance metrics
metrics.py
Results and charts
- Console summaries
main.py - CSV export
export_results.py - Results CSV files
results - Chart generation
make_charts.py - Chart images
report/charts
Other components
- Console user
Connections 12
- Console user → CLI and experiments: runs
README.md - CLI and experiments → Workload generation: generates
main.py - CLI and experiments → Algorithm suite: runs all
main.py - Workload generation → Process model: creates
workloads.py - Algorithm suite → Process model: copies and updates
schedulers.py - Algorithm suite → Performance metrics: calculates
schedulers.py - CLI and experiments → Console summaries: prints
main.py - CLI and experiments → CSV export: collects and writes
main.py - CSV export → Algorithm suite: reads results
export_results.py - CSV export → Results CSV files: writes
- Chart generation → Results CSV files: reads
make_charts.py - Chart generation → Chart images: saves
make_charts.py