2
$\begingroup$

Let's say OS is using preemptive CPU scheduling. A process P1 gets a chance to run for some time and then next higher priority process comes and preempts P1. After that higher priority processes are coming regularly and P1 never gets chance. Is this condition called starvation or not?

$\endgroup$
  • 2
    $\begingroup$ What do you think? Do you know what starvation means in this context? Do the conditions for starvation hold in this case? $\endgroup$ – Yuval Filmus Aug 24 '15 at 22:14
1
$\begingroup$

The first line in the wikipedia states "In computer science, starvation is a problem encountered in concurrent computing where a process is perpetually denied necessary resources to proceeds its work."

https://en.wikipedia.org/wiki/Starvation_%28computer_science%29

so the condition you stated is starvation because P1 is perpetually denied necessary resources to proceeds its work.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.