Skip to content

zheinz/CPUScheduler

Repository files navigation

CPUScheduler — README.md

CPU Scheduler (Simulation)

A small C++ project that simulates CPU scheduling and computes basic stats over generated workloads.

Contents

  • scheduler.cpp – main scheduler implementation
  • compute_stats.cpp – compute summary statistics over runs
  • baseline.cpp – a baseline/reference implementation
  • draftScheduler1.cpp, draftScheduler2.cpp – prototyping versions
  • inputGenerator.py – generates input for testing
  • data_1111.txt, data_2222.txt, data_3333.txt – example inputs
  • test.sh – convenience script to build/run tests

Build & Run

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors