Race Conditions
The result varies unpredictably because the value of X isn’t dependable until the barrier at the end of the do loop.
Wrong answers produced without warning!
Solution: Be careful when you use NOWAIT.
C$OMP PARALLEL SHARED (X)
ID = OMP_GET_THREAD_NUM()