I have a process in which each thread makes a convergence test and what I would like to is being able to determine at which step the convergence has been reached by every thread. I can have an int array, each thread assigning 0 or 1 depending on whether it satisfies the convergence teste or not but now how for each thread to test that the array contains only zeros? More generally how this is generally achieved?