- Open the terminal.
- Run the following command to build the program: make
- Execute the program with:
./schedule tasks.txt RR/SJF/RRP
Replace
RR/SJF/RRPwith the desired scheduling algorithm.
- Open a terminal or command prompt.
- Compile the program with: gcc schedule.c -o schedule
- Run the program with:
./schedule tasks.txt RR/SJF/RRP
Replace
RR/SJF/RRPwith the desired scheduling algorithm.
To run the Round Robin algorithm on tasks.txt:
./schedule tasks.txt RR
To run the Shortest Job First algorithm: ./schedule tasks.txt SJF