Is the below given Peterson’s solution free from deadlock ?
I am getting a doubt that if we preempt the P0 after executing line 1 and if P1 arrives next it will get blocked . Once P0 resumes it will get blocked. So both are in deadlock , Is that correct?
64.3k questions
77.9k answers
244k comments
80.0k users