09-12-2011, 03:16 PM
One of possible ways:
Use single variable. Set it to the number of threads, and wait until the variable is 0. Each thread decrements it.
Use single variable. Set it to the number of threads, and wait until the variable is 0. Each thread decrements it.
