Overview
Shortest Remaining Time First is the preemptive version of shortest-job-first. When a new job arrives, the scheduler compares remaining times and may switch to the shorter job.
Preemptively runs the ready job with the smallest remaining processing time.
Compact metadata for implementation and discovery.
Shortest Remaining Time First is the preemptive version of shortest-job-first. When a new job arrives, the scheduler compares remaining times and may switch to the shorter job.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n log n)
Worst
O(n^2)
Space
O(n)
Show always running the job with the least remaining processing time on a small preemptive scheduling example.
SRTF is latency-friendly but can be unfair without aging or admission control.
What each reference supports for this entry.
Operating-systems reference for Shortest Remaining Time First CPU scheduling policy, ready-queue ordering, and preemption behavior.
Good next jumps from the relationship graph, ranked for useful discovery.
SRTF is the preemptive form of shortest-job-first.
SRTF minimizes short-job latency, while round robin emphasizes time-sliced fairness.