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)
we know each ideal algorithm for critical section accessing must have three constraints : 1.mutual exclusion , 2.progress , 3.bounded waitingQt Code:
:retry flag[a]=false; if (flag[b] != false ) goto retry; flag[a]=true; if (flag[b] != false ) goto retry; // critical section flag[a]=false;To copy to clipboard, switch view to plain text mode
my question is: for the above algorithm which of these constrain(s) have?
best regards...
Bookmarks