Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Peter Dimov Date : Mon Apr 18 2005 08:39 pm Chris Thomasson wrote: >> "Should" and "possibly" aside, which one is faster > > mfence is faster than LOCK. > >> and by what margin? ;-) > > > Go ahead and try running the following code on your system: [...] mfence fails with exception C000001E, "an attempt was made to execute an invalid lock sequence". Athlon XP 2800+. .