[Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,
thiago.macieira at intel.com
Mon Oct 22 17:02:41 CEST 2012
On segunda-feira, 22 de outubro de 2012 15.18.17, Thomas McGuire wrote:
> Therefore, if your two threads are living on different CPUs, one CPU might
> not see the update on the other CPU, since the CPU caches are not updated.
> volatile does not help with that, you need proper memory barriers.
I don't know what you meant by "memory barriers" so I'm going to be explicit:
you need the proper acquire and release memory semantics.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: This is a digitally signed message part.
More information about the Interest