[concurrency-interest] tsc register

Dr Heinz M. Kabutz heinz at javaspecialists.eu
Tue Jan 10 07:03:17 EST 2012


Only if you use System.nanoTime().  Time difference might even be
negative if the thread is swapped between different cores.

On 10/01/2012, Mohan Radhakrishnan <radhakrishnan.mohan at gmail.com> wrote:
> Hi,
>
> One more question from the novice and for the novice.
>
> I see these points in Dr. click's PPT. Can I know why ? I ask this
> here because it seems to
> involve multiple cores. Maybe the jvm forums are better suited for this.
> Does this mean that we get wrong time values if threads run on
> different cores ?
>
> But cannot use, e.g. X86's "tsc" register
> ? Value not coherent across CPUs
> ? Not consistent, e.g. slow ticking in low-power mode
> ? Monotonic per CPU – but not per-thread
>
> Thanks,
> Mohan
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>


-- 
Dr Heinz M. Kabutz (PhD CompSci)
Author of "The Java(tm) Specialists' Newsletter"
Sun Java Champion
IEEE Certified Software Development Professional
http://www.javaspecialists.eu
Tel: +30 69 72 850 460
Skype: kabutz



More information about the Concurrency-interest mailing list