[cpp-threads] Memory model question

Alexander Terekhov alexander.terekhov at gmail.com
Fri Aug 26 12:43:29 BST 2005


On 8/26/05, Peter Dimov <pdimov at mmltd.net> wrote:
> In your opinion, does the following example contain a data race?
> 
> // initially x == 0
> 
> T1:
> 
> x = 0;
> 
> T2:
> 
> r1 = x;

Yes.

regards,
alexander.




More information about the cpp-threads mailing list