Explain the difference between Shortest Job First (SJF) and Shortest Remaining Time First (SRTF) scheduling.

Last updated 5 July 2026

  • SJF is non-preemptive: it picks the smallest total CPU burst and runs it to completion, even if a shorter job arrives.

  • SRTF (Shortest Remaining Time First) is preemptive SJF: a new arrival with less remaining time preempts the running process, lowering average waiting time at the cost of more context switches.

  • Both need burst-length estimates and both can starve long processes.

  • https://www.knowledgegate.ai/blog/sjf-srtf-scheduling-mcqs-solved-questions-with-explanations
  • https://www.tutorialspoint.com/operating_system/os_shortest_job_first_scheduling.htm
  • https://www.scaler.com/topics/sjf-scheduling-in-c/
  • https://www.geeksforgeeks.org/operating-systems/difference-between-shortest-job-first-sjf-and-round-robin-rr-scheduling-algorithms/
  • https://www.geeksforgeeks.org/operating-systems/difference-between-sjf-and-srjf-cpu-scheduling-algorithms/
  • https://www.scaler.com/topics/sjf-scheduling-in-os/
  • https://www.gatevidyalay.com/sjf-scheduling-srtf-cpu-scheduling/
  • https://medium.com/@drajput_14416/cpu-scheduling-shortest-job-first-sjf-priority-scheduling-and-round-robin-rr-c42de2469950
All Operating Systems interview questions