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?
Asked By : Neelesh Shukla
Answered By : Ps Akshay
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.
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/45542
0 comments:
Post a Comment
Let us know your responses and feedback