logo

Crowdly

Process P1 and P2 use flag which is initialized to 0  in the below code segment ...

✅ 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 

0%
0%
More questions like this

Want instant access to all verified answers on moodle.spit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!