Queue Non-preemptive
Average waiting time is long
Schedule the job with the shortest duration first (when it arrives) Non-preemptive
Can you show a counter example where this is not optimal? (hint: think about different arrival times)
This is the preemptive version of SJF. At each time interval, check the shortest job. Use SJF when the all the jobs are in the queue.
This is unfortunately not practical because CPU cannot know all the duration (burst time) ahead of the time.
So we can just put them into small segments and run them in order.
Last updated 6 years ago