Re: using select as a sleep call
- From: Rick Jones <rick.jones2@xxxxxx>
- Date: Sat, 20 Feb 2010 02:18:58 +0000 (UTC)
novickivan@xxxxxxxxx <novickivan@xxxxxxxxx> wrote:
I was wondering if it is valid to use select as a sleep call.
"Back in the day" when the only choices were select() and sleep(),
given sleep() only slept for an integer number of seconds, those who
wanted a short sleep would use select(). And back then one often only
got 10 millisecond resolution - and liked it!-)
With the advent of usleep() and nanosleep() however many years ago
using select() for short sleeps has fallen out of favor.
rick jones
--
Process shall set you free from the need for rational thought.
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
.
- References:
- using select as a sleep call
- From: novickivan@xxxxxxxxx
- using select as a sleep call
- Prev by Date: Re: using select as a sleep call
- Next by Date: Re: using select as a sleep call
- Previous by thread: Re: using select as a sleep call
- Next by thread: Re: using select as a sleep call
- Index(es):
Relevant Pages
|