Helper scripts to help with the Operating Systems course at the UoE
process scheduling:
python3 scheduling.py <input csv file path> process <optional time quantum, default 1>
disk scheduling:
python3 scheduling.py <input csv file path> disk <low-track> <high-track> <start-head-track> <start-head-direction (1|-1 for high or low respectively)>
the input csv file contains a scheduling unit per line with the following formats:
process scheduling:
process name, arrival time (int), cpu burst time (int), priority (int, lower is better)
disk scheduling:
track name, arrival time (int), track number (int)
the output will be a number of different csv files containing the minified gantt charts for each relevant scheduling algorithm like so:
unit,0-0(1),1-2(2),3-5(3),turnaround time,wait time
p1,1,0,0,1,0
p2,0,1,0,3,1
p3,0,0,1,6,3
averages,_,_,_,3.3333333333333335,1.3333333333333333
TBC