Subj : Re: Predicate for pthread_cond_timedwait() ?? To : comp.programming.threads From : Paul Braman Date : Fri Mar 18 2005 07:00 am select() doesn't work as a timer. If it gets interrupted by a signal you won't know how much time left there was until the next "time". nanosleep() is the best option as it has all the correct semantics. (Returns the remaining time if it gets interrupted, has fine-grained resolution, etc.) pthread_cond_timedwait() has the semantics you need, but using it should be a last resort if nanosleep() is not supported. Paul Braman paulbramangmailcom .