interactive step-by-step · all algorithms · os course
Each process gets a fixed time quantum. If not done, it goes to the back of the queue.
TQ = 2 unitsAlways runs the process with the least remaining burst. Preempts on every new arrival.
PreemptiveWhen the CPU is free, picks the arrived process with the shortest burst. Runs to completion.
Non-PreemptiveWhen CPU is free, picks the highest-priority arrived process. Runs to completion.
Non-Preemptive Lower # = Higher PriorityIf a higher-priority process arrives, it immediately preempts the running process.
Preemptive Lower # = Higher Priority