...

/

Starvation

Starvation

Learn about the starvation concept in general.

We'll cover the following...

Overview of starvation

The concepts of concurrency and race condition work fine only when the whole block of code executes without preemption. But, why is preempting necessary? Can’t the process execute completely and then schedule another process?

Let’s consider a case in which we have five processes. Each process has a different priority, and a preemptive scheduling strategy is being used to schedule the allocation of the CPU to these processes. The process with the ...