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?
