shortest job first algorithm Algorithm

However, it has the potential for procedure starvation for procedures which will necessitate a long time to complete if short procedures are continually added. While it is impossible to predict execution time perfectly, several methods can be used to estimate it, such as a weighted average of previous execution times.

shortest job first algorithm source code, pseudocode and analysis