Non-preemptive: once a process gets the CPU it keeps it until it finishes or blocks; simple and low overhead, but a long job can delay everyone (FCFS and non-preemptive SJF).
Preemptive: the OS can take the CPU away (for a time-slice expiry or a higher-priority process), which improves responsiveness and fairness but adds context-switch overhead and requires careful handling of shared data (round robin, SRTF, preemptive priority).
Modern general-purpose operating systems are preemptive; cooperative multitasking relies on processes yielding voluntarily and can be stalled by one that never does.
Loading…