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?
- A.
Both processes are terminated.
- B.
The CPU is switched to the higher-priority process.
- C.
The system crashes.
- 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.