From: Bill Davidsen <davidsen@tmr.com>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: select(0,NULL,NULL,NULL,&t1) used for delay
Date: Mon, 10 Oct 2005 14:06:12 -0400 [thread overview]
Message-ID: <434AAD94.2060109@tmr.com> (raw)
In-Reply-To: <81b0412b0510060727h35c0fd78i260037ca89f253f9@mail.gmail.com>
Alex Riesen wrote:
> On 10/6/05, Madhu K.S. <madhu.subbaiah@wipro.com> wrote:
>
>>Hi all,
>>
>>In many application we use select() system call for delay.
>>
>>example:
>>select(0,NULL,NULL,NULL,&t1);
>>
>>select() for delay is very inefficient. I modified sys_select() code for
>
>
> Why don't you just use nanosleep(2) (or usleep)?
I think the answers here are (a) because there's an existing code base,
and (b) as long as the functionality is required it might as well be
provided optimally. If tou're going to do something at all, do it right.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
prev parent reply other threads:[~2005-10-10 18:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-06 13:49 select(0,NULL,NULL,NULL,&t1) used for delay Madhu K.S.
2005-10-06 14:25 ` Jesper Juhl
2005-10-06 14:28 ` Jesper Juhl
2005-10-06 19:05 ` Howard Chu
2005-10-06 19:41 ` Christopher Friesen
2005-10-06 14:27 ` Alex Riesen
2005-10-06 15:26 ` Christopher Friesen
2005-10-06 15:42 ` Bernd Petrovitsch
2005-10-06 15:57 ` Christopher Friesen
2005-10-06 17:30 ` Bob Copeland
2005-10-10 18:06 ` Bill Davidsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434AAD94.2060109@tmr.com \
--to=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=raa.lkml@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox