On 11/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
----- Original Message -----
From: Orlando Andico
To: The Main Philippine Linux Users' Group (PLUG) Discussion List
Sent: Monday, November 21, 2005 3:32 PM
Subject: Re: [plug] Perl: handling blocking reads "nicely"
>>2. using either select or poll function...
>
>computationally expensive. :P
no :-> select or poll is least expensive if you have multiple descriptors
watching on it versus to other techniques which is more expensive :->
>>if you dont want to implement socket timeout... you can set the socket
>>filedescriptor default from blocking state into non-block state using
>>O_NONBLOCK flag in fcntl() function...
> O_NONBLOCK is worse. now THAT's real polling. CPU hog. MS-DOS style
> coding. :)
nope :-> non-blocking technique has its own placed :-> one good example is
non-blocking connect() for a web client :->
fooler.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.4/176 - Release Date: 11/20/2005
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

