Say you have 5 threads, executing the next line of code:
barrier();
a = 0;
where a is an int and global variable. Could it ever happen that, for some reason, the value of a will be different from 0 after each thread passed the line of code?
Say you have 5 threads, executing the next line of code:
barrier();
a = 0;
where a is an int and global variable. Could it ever happen that, for some reason, the value of a will be different from 0 after each thread passed the line of code?