Suppose I have a loop running in first thread:
while (!done);
Second thread at some point does done = true; thus first thread qu
done = true;