Execution barrier for multiple threads.