Can I force cache coherency on a multicore x86 CPU?
volatile only forces your code to re-read the value, it cannot control where the value is read from. If the value was recently read by your code then it will probably be in cache, in which case volatile will force it to be re-read from cache, NOT from memory. There are not a lot of … Read more