A multiprocessor computer may not have one “value” that is read. Two streams, and the third, can see inconsistent values. You will need a memory barrier so that each thread sees the same value at this address.
In addition, records are usually atomic, so this will be either one or the other of the values that were written (or were there first) that are read. You are not talking about the Alpha processor, are you?
Pascal cuoq
source share