e8d5f8a918 | ||
---|---|---|
.. | ||
.vscode | ||
WorkloadFiles | ||
doc | ||
src | ||
.gitignore | ||
Makefile | ||
README.md | ||
cpu_times.txt |
README.md
Scheduler Simulation
This project simulates how a scheduler runs processes on a processor with one CPU and two CPUs. The scheduler can be executed for single-core and multi-core setups.
File Structure
├── src/ # Source files
│ ├── scheduler.cpp
│ ├── multi_core_scheduler.cpp
├── bin/ # Executables (generated after build)
├── doc/ # Assignment documentation
└── WorkloadFiles/ # Workload files
Compilation and Execution
To build and run the simulations, use the following commands:
Single-Core Scheduler
- Build the single-core scheduler:
make build-sched
- Run the single-core scheduler:
make run-sched WF=<workload_file> SA=<scheduling_algorithm>
Multi-Core Scheduler
- Build the multi-core scheduler:
make build-sched-multi
- Run the multi-core scheduler:
make run-sched-multi WF=<workload_file> SA=<scheduling_algorithm>
Clean
To remove the compiled binaries:
make clean