Subj : Re: pthread_cond_timedwait problems To : comp.programming.threads From : Joe Seigh Date : Sun Aug 14 2005 08:19 am markh@compro.net wrote: > > nanosleep does not relinquish the cpu. Using it in my env causes > serious problems. > > I guess the nsec member of the timeval struct was misleading me. I > should have known better. > For short waits it doesn't yield the cpu but yielding the cpu isn't the purpose of nanosleep. Actually, sched_yield isn't guaranteed to yield the cpu either. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. .