When an OS processes tasks in a priority order, it is known as preemptive multitasking.
According to its definition, preemptive tasking is "a task in which a computer operating system uses some
criteria to decide how long to allocate to any one task before giving
another task a turn to use the operating system."