Skip to content
Sign in
Computer PPSC

In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared with the priority of:

Tap an option to check the answer. You can also press A–D.

Explanation
If the newly arrived process has a higher priority than the currently running one, the running process is preempted and the CPU is given to the new process. (Stray OCR character 7 and capitalization fixed in the question.) Related facts: This comparison is what makes the scheme preemptive; without it, the algorithm would be non-preemptive. The init process is the first process started by the kernel and is unrelated to this comparison. Exam tip: Preemptive versus non-preemptive is a favorite exam distinction: the arrival-time comparison with the running process is the hallmark of the preemptive version.