Questions: Scheduling Fairness and Starvation Prevention

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A system uses strict priority scheduling. Low-priority process P1 has been waiting 10 hours while a continuous stream of high-priority processes arrives. According to strict priority scheduling, P1:

AWill eventually run after all currently queued high-priority processes complete
BMay never run if high-priority processes continue arriving faster than they finish
CWill be automatically promoted to high priority after a threshold wait time
DWill run because strict priority scheduling uses round-robin as a tiebreaker between priority levels
Question 2 Multiple Choice

Priority inversion occurs when:

AA high-priority process is blocked waiting for a lock held by a low-priority process, which is then preempted by a medium-priority process — indirectly blocking the high-priority one
BTwo high-priority processes compete for the same CPU time slice simultaneously
CA low-priority process runs before a high-priority one because aging has boosted its priority
DThe scheduler runs out of priority levels and demotes all processes to the same tier
Question 3 True / False

Aging prevents starvation by gradually increasing the priority of a process the longer it waits in the ready queue.

TTrue
FFalse
Question 4 True / False

A proportional-share scheduler like Linux's CFS guarantees that most process receives exactly equal CPU time regardless of its share weight.

TTrue
FFalse
Question 5 Short Answer

Explain why priority inheritance is needed to solve priority inversion, and why simply permanently raising the lock holder's priority to 'high' would be wrong.

Think about your answer, then reveal below.