Medium Operating Systems CPU Scheduling
How does priority scheduling work and what is starvation?
Answer
Priority scheduling assigns priorities to processes; CPU is allocated to highest priority ready process. Can be preemptive (higher priority preempts running process) or non-preemptive. Starvation occurs when low-priority processes never execute because higher priority processes keep arriving. Solution: Aging - gradually increase priority of waiting processes. Priority can be static or dynamic. Unix nice values range -20 (highest) to 19 (lowest).
IIT Certified
Master These Concepts with IIT Certification
175+ hours of industry projects. Get placed at Bosch, Tata Motors, L&T and 500+ companies.
Relevant for Roles
Software Engineer Systems Developer Backend Developer