Subj : Re: Consistency of a byte shared variable To : comp.programming.threads From : SenderX Date : Mon Jan 31 2005 11:43 pm >> POSIX, > > POSIX requires locks around all accesses to shared variables. See the > POSIX memory visibility rules. Does POSIX guarenetee that the following senerio will be correct? // shared vars int s1 = 0; int s1 = 0; int s1 = 0; .