Questions: Priority Scheduling Algorithms

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A system uses preemptive priority scheduling. Process P1 (priority 5) is running when Process P2 (priority 8) enters the ready queue. What happens immediately?

AP1 continues until it completes its CPU burst, then P2 runs
BP1 is immediately preempted and P2 is given the CPU
CP2 is added to the ready queue and P1 continues until it voluntarily blocks
DThe scheduler waits for the next clock tick before deciding whether to switch
Question 2 Multiple Choice

A batch job has been waiting in the ready queue for two hours in a priority-scheduled system, repeatedly deferred by arriving interactive tasks. What is the standard mechanism to address this?

AAssign the batch job maximum static priority at design time
BAging — the OS gradually increases the priority of processes that have waited a long time
CSwitch the entire system to FCFS to guarantee eventual execution
DReduce all interactive task priorities by half every 30 minutes
Question 3 True / False

In a priority scheduling system without aging, a low-priority process can remain in the ready queue indefinitely without ever receiving CPU time.

TTrue
FFalse
Question 4 True / False

Static priorities (assigned once at process creation and seldom changed) are generally preferred over dynamic priorities in modern operating systems because they are more predictable.

TTrue
FFalse
Question 5 Short Answer

Explain why aging is necessary in priority scheduling and how it prevents indefinite starvation.

Think about your answer, then reveal below.