[concurrency-interest] ThreadLocal vs ProcessorLocal

Mark Thornton mthornton at optrak.com
Wed Oct 17 18:26:06 EDT 2012

On 17/10/12 22:55, Jacy Odin Grannis wrote:
> One easy way you can see
> this is System.nanoTime will suddenly start returning wildly different
> values.  nanoTime is only consistent on a single processor, it can
> vary widely between processors (at least on Linux).
I didn't think that was supposed to happen (on a properly configured 
machine). During the boot process on my systems the kernel checks to see 
if the TSC is consistent between cores before selecting it for use (and 
otherwise uses something else).


More information about the Concurrency-interest mailing list