Subj : Re: [x86] Reads/Writes To : comp.programming.threads From : David Schwartz Date : Mon Sep 26 2005 01:46 pm "Cool Guy" wrote in message news:19mbxvhed7ztx.dlg@cool.guy.abc.xyz... > David Schwartz : >>> I've read (no pun intended) that all writes on x86 are effectively >>> volatile >>> writes. So does that mean that on x86 only 'read' barriers are >>> necessary? >> >> At what level are you talking? Are you assuming that a person is >> writing >> assembly language code? Or are you talking about to a C programmer? > > At the level of a C programmer I guess. Then unfortunately the hardware behavior doesn't help you because the compiler can reorder writes, cache data in registers, and so on. DS .