Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Real time clock (rpcc)
@ 1997-06-25  4:00 Rob Kirkbride
  1997-06-26  4:00 ` Jeffrey Mogul
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Kirkbride @ 1997-06-25  4:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-06-27  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-25  4:00 Real time clock (rpcc) Rob Kirkbride
1997-06-26  4:00 ` Jeffrey Mogul
1997-06-27  4:00   ` Rob Kirkbride

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