Has anyone figured out how to do the SJF scheduling Gantt chart according to Tut 102? I look at it, I can't find any information anywhere and can't figure out (with certainty) how they build it. I know it's too late for the assignment, but I reckon it's important to understand.
Kyle - the Non pre-emptive SJF (Shortest Job First) scheduling is not too complicated.
At each switch the process or job with the shortest burst time is selected. If there is a tie, i.e. 2 processes have the same burst time, then the process closer to the front of the queue is selected.
It gets a little trickier when the jobs arrive at different intervals. Simply evaluate which jobs exist at the time the switch occurs, then simply select the job with the shortest burst time.