Subj : Re: timer thread & signal question To : comp.programming.threads From : David Schwartz Date : Thu Jan 06 2005 10:10 pm "VK" wrote in message news:1105069499.499408.138160@z14g2000cwz.googlegroups.com... > Please help me with this newbie problem. I'm trying to set up a timer > thread with the signal handler. My problem is that when I have 2 > timers that go off at the same time, the signal SIGUSR2 is sent twice > to sigwait(), but since they are 2 identical signals, sigwait() sees it > as 1 signal only. How do I tell sigwait() that there are 2 of the same > signal? You need to write your own timer coalescing code. It has to figure out how long until the next timer fire and set a master timer for that amount of time. Then when the timer signal fires, it needs to see timers to fire. DS .