On Mon, Apr 15, 2013 at 08:42:03PM +0200, Pawel Jakub Dawidek wrote:
> On a mostly unrelated note when two threads (T0 and T1) call get*time()
> on two different cores, but T0 does that a bit earlier is it possible
> that T0 can get later time than T1?

Define earlier first.

If you have taken sufficient measures to prevent preemption and interruption,
e.g. by entering spinlock before the fragment that calls get*, then no,
it is impossible, at least not with any x86 timekeeping hardware we use.

On the other hand, if interrupts are allowed, all bets are off.

Attachment: pgp5apjuytuPs.pgp
Description: PGP signature

Reply via email to