✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Process P1 and P2 use flag which is initialized to 0 in the below code segment to access critical section
try-enter_cs()
{
if (flag==0)
{
flag=1;
<CS>
flag=0;
}
}
The above code leads to
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!