In Shortest Job First (SJF) the process whose job takes less time it will be served first by the processor.
The processor gets processes from the ready Queue.
Waiting time (n) = waiting time (n-1) + Burst time (n-1)
Turnaround time (n)= waiting time(n)+Burst time(n)
Average waiting time = Total waiting Time / Number of process.
Average Turnaround time = Total Turnaround Time / Number of process.
|