Use poll() instead of select()

David Leimbach kde-optimize@mail.kde.org
Thu, 30 Jan 2003 17:36:30 -0600


Also... I'd like to throw in that certain operating systems don't have 
poll... like Mac OS X.

Libpoll is installable and is basically a hack to make it work.

Select is then more ubiquitous...

Dave
On Thursday, January 30, 2003, at 04:41 AM, Shridhar Daithankar wrote:

> On 30 Jan 2003 at 11:28, Lubos Lunak wrote:
>
>> On Thursday 30 of January 2003 11:15, Jaime Torres wrote:
>>> Hello,
>>>
>>>   I have done a small test with the very recent kde 3.1 on a
>>> linux-i686-2.4.20.
>>>
>>>   I have readed in http://www.kegel.com/dkftpbench/Poller_bench.html
>>>   that poll() is faster than select() on Linux,*BSD and I thinked 
>>> that also
>>> in comercial unixes, but I know that poll() is simpler to use than
>>> select().
>>
>>  From the URL:
>> (for 100 fds)
>>  call       microseconds
>>  select  54
>>  poll     50
>
> Isn't that data little too old? 2.2.14 is really old.
>
> Anyway how many connections does DCOP server entertains? Even if it is 
> a high
> cost operation, if it is not getting hit pretty frequently, then it 
> should be
> OK. Isn't it?
>
> Bye
>  Shridhar
>
> --
> Abstainer, n.:	A weak person who yields to the temptation of denying 
> himself a	
> pleasure.		-- Ambrose Bierce, "The Devil's Dictionary"
>
> _______________________________________________
> Kde-optimize mailing list
> Kde-optimize@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-optimize
>