IMPLEMENTATION - SHORT JOB FIRST (SJF)



  • Input the number of processes required to be scheduled using SJF, burst time for each process and its arrival time.

  • Sort all the process according to the arrival time.

  • Then select that process which has minimum arrival time and minimum Burst time.

  • After completion of process make a pool of process which after till the completion of previous process and select that process among the pool which is having minimum Burst time.
Invalid Input
PLAY
RESET
Average TAT : 0
Average WT : 0
Average RT : 0
ADD
PID AT BT ST CT RT WT TAT