Subj : Re: Memory visibility with Pthreads To : comp.programming.threads From : Peter Dimov Date : Sun Aug 14 2005 05:39 am Maciej Sobczak wrote: > This means that the platform is allowed to reorder the first thread 1 > from this (the original version): > > A = 10; > lock > B = 10; > unlock > > to this (because it does not change anything from the point of view of > any thread): > > lock > A = 10; > B = 10; > unlock and this: lock B = 10; A = 10; unlock > but *not* to this: > > lock > B = 10; > unlock > A = 10; .