OS-Labs/lab3
ItsMAX0112 e8d5f8a918 no change as such 2024-10-11 03:19:29 +05:30
..
.vscode single cpu completed 2024-09-26 02:36:42 +05:30
WorkloadFiles single cpu completed 2024-09-26 02:36:42 +05:30
doc better folder structure for lab3 2024-09-22 20:40:45 +05:30
src sched complete 2024-10-01 00:10:13 +05:30
.gitignore better folder structure for lab3 2024-09-22 20:40:45 +05:30
Makefile better folder structure for lab3 2024-09-22 20:40:45 +05:30
README.md added a readme 2024-09-22 20:49:44 +05:30
cpu_times.txt 2 also cpu completed 2024-09-26 03:44:04 +05:30

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

  1. Build the single-core scheduler:
    make build-sched
    
  2. Run the single-core scheduler:
    make run-sched WF=<workload_file> SA=<scheduling_algorithm>
    

Multi-Core Scheduler

  1. Build the multi-core scheduler:
    make build-sched-multi
    
  2. Run the multi-core scheduler:
    make run-sched-multi WF=<workload_file> SA=<scheduling_algorithm>
    

Clean

To remove the compiled binaries:

make clean