Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!



Hi I have a syntactic question here that I cant figure out

int x = 0; sem s1 = 1, s2 = 0;
co P(s2); P(s1), x=x*2, V(s1);
// P(s1); x = x*x; V(s1);
// P(s1); x = x + 3; V(s2); V(S1);

what is the possible final answers of x ???

this is parallel computing language for parallel stands for concurrency and oc its the end of it, the V and P operations is as follows:

P(S): 0) s = s - 1;>

Sign In or Register to comment.