In a preemptive priority scheduling algorithm, what happens when a…

2025

In a preemptive priority scheduling algorithm, what happens when a higher-priority process arrives while a lower-priority process is executing?

  1. A.

    Both processes are terminated.

  2. B.

    The CPU is switched to the higher-priority process.

  3. C.

    The system crashes.

  4. D.

    The lower-priority process continues to execute.

Attempted by 93 students.

Show answer & explanation

Correct answer: B

In preemptive priority scheduling, when a higher-priority process arrives while a lower-priority process is executing, the CPU switches to the higher-priority process immediately. This preemption ensures that critical tasks are handled promptly.

Explore the full course: Niacl Ao It Specialist