From b2ae3414671e4be2ea2c40ae8bbf51a3601401c1 Mon Sep 17 00:00:00 2001 From: ItsMAX0112 Date: Sun, 22 Sep 2024 20:49:44 +0530 Subject: [PATCH] added a readme --- lab3/README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 lab3/README.md diff --git a/lab3/README.md b/lab3/README.md new file mode 100644 index 0000000..6cf1035 --- /dev/null +++ b/lab3/README.md @@ -0,0 +1,44 @@ +# 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 +1. **Build the single-core scheduler**: + ```bash + make build-sched + ``` +2. **Run the single-core scheduler**: + ```bash + make run-sched WF= SA= + ``` + +### Multi-Core Scheduler +1. **Build the multi-core scheduler**: + ```bash + make build-sched-multi + ``` +2. **Run the multi-core scheduler**: + ```bash + make run-sched-multi WF= SA= + ``` + +### Clean +To remove the compiled binaries: +```bash +make clean