Question: why sjf is better than fcfs?
Answer: SJF has the best average turnaround time, followed by FCFS. RR has the worst turnaround time, in comparison. ... SJF scheduling is an improvement over FCFS, taking into account the length of time a process needs to complete (CPU burst). SJF is provably optimal, providing the shortest average waiting time.