Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Rob Kirkbride <rk-comp@rk-comp.demon.co.uk>
Subject: Real time clock (rpcc)
Date: 1997/06/25	[thread overview]
Message-ID: <nK9t0CA9VVszEwhs@RK-COMP.DEMON.CO.UK> (raw)


I am trying to use rpcc to give me accurate times in order that I can
trigger a timer every 50ms. This generates a SIGALRM and then I use the
rpcc instruction to find whether I have am late servicing the timer and
if so by how much.

        As I understand the top 32 bits of the register is decremented
when the program is NOT running on the cpu. The bottom 32 bits are
incremented I thought by a piece of hardware all the time. The problem
is that as the processor becomes loaded the bottom 32 bits slow down.
This would seem to be impossible unless the operating system is
maintaining this counter.

        Does anyone know more about the rpcc instruction? Also my code
is not safe in a multi-processor system which I would like it to be.

        Should I be using an alternative method for generating regular
alarms preferably by something that doesn't slow down if the system
becomes loaded!

Any help would be much appreciated,

Rob
-- 
Rob Kirkbride



             reply	other threads:[~1997-06-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-25  4:00 Rob Kirkbride [this message]
1997-06-26  4:00 ` Real time clock (rpcc) Jeffrey Mogul
1997-06-27  4:00   ` Rob Kirkbride
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox