hi all
i have question about concurrency processing in operating systems concepts
suppose that we have two process A,B that running concurrently in a computer.
we have the following algorithm. (this is for A , for B replace a to b)
Qt Code:
  1. :retry
  2. flag[a]=false;
  3. if (flag[b] != false ) goto retry;
  4. flag[a]=true;
  5. if (flag[b] != false ) goto retry;
  6. // critical section
  7. flag[a]=false;
To copy to clipboard, switch view to plain text mode 
we know each ideal algorithm for critical section accessing must have three constraints : 1.mutual exclusion , 2.progress , 3.bounded waiting
my question is: for the above algorithm which of these constrain(s) have?

best regards...