Interval timers on Fedora

Douglas Phillipson phillipd at oem.doe.gov
Fri Aug 4 17:16:18 UTC 2006


This probably isn't a Fedora specific question so I apologize if this is 
the wrong forum.

Anybody know if you can set more than one interval timer in a single 
process?

(setitimer())

Would starting more than one interval timer in a single process confuse 
the signal system when delivering the SIGALRM to the receiving process?

In other words, can I have a 10 second interval timer which when times 
out delivers a sigalrm to one function, and in the same process have a 1 
second interval timer set to give a sigalrm to another function?

I'm having trouble with a second interval timer, it doesn't seem to 
work, or deliver the signal to the desired function.  I'm using a 
separate instance of struct itimerval and struct sigaction when setting 
up the timers.  I have several books on the subject of interval timers 
but none say you shouldn't do this, just "Every process has its own set 
of timers".  But they might be referring to REAL, VIRTUAL, and PROF 
timers, a single set of these for each process.

Opinions requested...

Thanks

Doug P




More information about the fedora-list mailing list