Problem with sleep and signal/alarm.

Chris Torek torek at elf.ee.lbl.gov
Thu May 9 17:53:27 AEST 1991


In article <1991May07.221122.18325 at chinet.chi.il.us>
les at chinet.chi.il.us (Leslie Mikesell) writes:
>... First, the alarm granularity on unix is 1 second intervals, so
>an alarm(1) will go off at the next second transition after you do
>it which could be almost instantly.

Actually, this depends on your Unix variant.  There is still some
unavoidable jitter and delay, and adjtime() goofs things up, but in
general, on 4.2BSD systems and systems descended therefrom, the real
interval timer---alarm is a library function that this---really does
deliver SIGALRMs when you asked for them.
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.unix.questions mailing list