Priority Scheduling & Starvation — Concept Check
Questions on Priority Scheduling & Starvation. Priority scheduling assigns each process a priority and always runs the highest-priority process next, but risks starvation of low-priority processes — solved by aging.
Questions in this quiz
7 questions on Priority Scheduling & Starvation — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A low-priority process has been waiting for CPU time for a long period. What mechanism can help it eventually run?
- AAging
- BPreemptive scheduling
- CPriority inversion
- DStatic priority
2.In a priority scheduling system, a high-priority task is blocked by a low-priority task holding a needed resource. What is this situation called?
- AStarvation
- BAging
- CPreemptive scheduling
- DPriority inversion
3.A system uses non-preemptive priority scheduling. What happens when a high-priority process arrives while a low-priority process is running?
- AThe high-priority process preempts the low-priority one
- BThe low-priority process is terminated
- CThe low-priority process continues until completion
- DBoth processes run simultaneously
4.A Java program experiences delays because a high-priority thread is waiting for a lock held by a low-priority thread. What is a potential solution?
- AUse static priorities
- BIncrease the high-priority thread's priority
- CImplement priority inheritance
- DSwitch to non-preemptive scheduling
5.A developer notices that low-priority tasks are rarely executed in their priority scheduling system. What might be happening?
- APriority inversion
- BAging
- CDynamic priority adjustment
- DStarvation
6.A system using priority scheduling frequently experiences priority inversion. Which of the following could help alleviate this issue?
- AImplement priority inheritance
- BUse static priorities
- CIncrease all thread priorities
- DSwitch to non-preemptive scheduling
7.What is the primary risk associated with static priority scheduling?
- AFrequent context switching
- BStarvation of low-priority processes
- CPriority inversion
- DHigh CPU utilization