322 views
1 votes
1 votes
Process P0:-                                                                                          Process P1

while(1)                                                                                                  while(1)

{                                                                                                             {

   int[0]=True;                                                                                              int[1]=True;

   while(int[1]==True);                                                                                 while(int[0]=True);

   //CS//                                                                                                       //CS//

   int[0]=False;                                                                                            int[1]=False;

}                                                                                                              }

Initially, int[0]=int[1]=false;

Will this algorithm satisfy progress and why?

1 Answer

Related questions