Preemptive Scheduling

In preemptive scheduling, the current process is directly interrupted, whenever a task with a higher priority is activated. Since all cooperative tasks have lower priorities than preemptive or non-preemptable tasks, preemptive tasks cannot be interrupted by cooperative tasks. After the interrupting task is completed, the process is resumed. The figure below shows the same scenario as for cooperative tasks (i.e. the process running times p1 = 2 ms, p2 = 1 ms, p3 = 5 ms, p4 = 4 ms, and p5 = 2 ms) with preemptive scheduling.

See also

Cooperative Scheduling

Tasks

Processes