Preemptive multitasking establishes a time-shared condition in which running programs on an operating system get a repetitive slice of time from the CPU. Contingent upon the operating system, the time slice might be the equivalent for all programs, or it might be tweaked to meet the present mix of applications and users.
For instance, programs running on a system’s background can be given more CPU time regardless of how heavy the frontal load and vice versa. Furthermore, the OS can understand the machine cycles that a modem or system program requires for continuous processing.