Subj : Re: What does Memory Barriers mean ?? To : comp.programming.threads From : Alexander Terekhov Date : Mon Jan 10 2005 02:15 pm David Schwartz wrote: [...] > Nonsense. Few people would willingly use such a compiler, and compilers > like VC++ and gcc are not compilers like that. If your code/compiler works > at one optimization level and not another, there's either a bug in your code > or a bug in the compiler. Single-threaded "observable behavior" aside for a moment, neither gcc not VC++ have any meaningful MT memory model that would allow programmers express memory isolation and reordering constrains imposed on compiler and/or "hardware." So in practice, it all "works" by accident, so to say. regards, alexander. .