Subj : Re: PThreads/LinuxThreads & setitimer() To : comp.programming.threads From : steve Date : Sun Jan 23 2005 01:29 am In article , Jean-Christophe ARNU wrote: > > I thought my thread would have been woke up by SIGALRM but no SIGALRM >seems to be raised at all! If I use sigaction() with a signal handler >for SIGALRM, handler is correctly called thus signal is generated! > > Can anybody tell me where is the problem (even conceptual)? How would >you create accurate timers with pthreads? [ snip ] On brief examination, your code looks OK. However, there are bugs in older Linux distributions where the thread that issues the setitimer() must also be the thread that calls sigwait(). I believe this has been corrected with the NPTL release, but you didn't mention what Linux version/distro you're using. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW32 Free time? There's no such thing. It just comes in varying prices... .