Multiple choice technology programming languages

what is preemptive multitasking.

  1. Obtain a thread's priority.

  2. A thread can voluntarily relinquish control.

  3. A thread can be preempted by a higher-priority thread.

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Preemptive multitasking allows the operating system to interrupt a currently running thread to allocate CPU time to another thread, typically one with a higher priority. This prevents any single thread from monopolizing the processor. Cooperative multitasking, by contrast, relies on threads voluntarily relinquishing control, while obtaining priority is merely an administrative function.