make
- make sure that the processes file is placed in Sched directory and called
processes.txt
- the arrangement of processes.txt file is <pid, burst time, arrival time>
- Open
app.cpp
- Navigate to
readFile(vector<process *> *processes)
function - Change "processes.txt" in
std::ifstream infile("processes.txt");
to the file name
- Open
app.cpp
- Navigate to
main()
- Change time quantum and context switch variables
- pass -all argument as the box below show
./app -all
- pass -fcfs argument as the box below show
./app -fcfs
- pass -SJF argument as the box below show
./app -sjf
- pass -rr argument as the box below show
./app -rr