Re: timers
Re: timers
- Subject: Re: timers
- From: James McCartney <email@hidden>
- Date: Mon, 13 Aug 2001 10:50:32 -0500
on 8/13/01 10:38 AM, Doug Wyatt at email@hidden wrote:
>
I wouldn't recommend usleep() (the man page has an interesting note ...).
Yeah I saw that. But I wonder if pthread_cond_wait does not have similar
overhead. I prefer the POSIX way if that is also just as good as the others.
>
pthread_cond_wait is a pretty direct way to tell the scheduler you want
>
to run a thread at some exact time in the future, and the wakeup latency
>
will be a direct function of your thread's priority vs. that of the
>
other runnable threads.
--- james mccartney email@hidden <
http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the PowerMac.
<
ftp://www.audiosynth.com/pub/updates/SC2.2.10.sea.hqx>
References: | |
| >Re: timers (From: Doug Wyatt <email@hidden>) |