Subj : Re: [.NET] Volatile Fields To : comp.programming.threads From : David Hopwood Date : Sun Sep 18 2005 01:42 pm Cool Guy wrote: > David Schwartz wrote: > >> What do caches have to do with thread-safety? It's read/write *ordering* >>that creates thread safety problems, not caches. > > I think I understand it more now -- when you talk of read/write re-ordering > you're talking about when reads/writes are effectively made to/from **main > memory**, right? No. We're talking about when reads/writes are "performed" according to the memory model. This may or may not correspond to when they are read/written to "main memory" in any particular implementation. You can't see when the latter happens (except in some cases when dealing with I/O devices). -- David Hopwood .