[Interest] Heavily Commented Example: Simple Single Frontend with Two BackendsHi,
thiago.macieira at intel.com
Wed Oct 24 16:56:32 CEST 2012
On terça-feira, 23 de outubro de 2012 17.19.13, Thiago Macieira wrote:
> Well, that's not exactly how processors work. CPU A will eventually get to
> write the data from its cache back to main RAM. And CPU B will eventually
> get to notice that and discard its cache. So the code running on CPU B
> will eventually get to see the new value.
> The question is only how long that might take.
Actually, I take this back too.
There's no instruction to make the CPU flush the caches sooner, at least not
one that programs usually use. Same thing on the other end: no instruction to
make a load faster.
So the code that the compiler generates is probably fine.
All you need to do is ensure that it *does* generate the load.
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