1.

What is starvation and aging in OS?

Answer»

When we use Priority Scheduling or Shortest Job First Scheduling, Starvation can happen, This algorithm is mostly used in CPU schedulers

Starvation: It is GENERALLY a problem that usually occurs when a process has not been able to get the required resources it needs for progress with its EXECUTION for a long period of time. In this condition, low priority processes get BLOCKED and only high priority processes proceed towards completion because of which low priority processes suffer from lack of resources. 

Aging: It is a technique that is used to overcome the SITUATION or problem of starvation. It simply increases the priority of processes that wait in the system for resources for a long period of time. It is considered the best technique to resolve the problem of starvation as it adds an aging factor to the priority of each and every request by various processes for resources. It also ENSURES that low-level queue jobs or processes complete their execution. 



Discussion

No Comment Found