Re: select() efficiency / epoll

Davide Libenzi
2005-08-24T05:09:15Z

On Tue, 23 Aug 2005, Davy Durham wrote:

> Davide Libenzi wrote:
>
>>
>> I should mention that the 2.4 patch is old WRT mainline epoll in 2.6 (I
>> stopped maintaining it when 2.6 went "stable"). I'd definitely suggest to
>> use 2.6 if you are looking at epoll.
>>
> I am using linux-2.6.11 and glibc-2.3.4 .. and using select() in it's place
> seems to work fine. Are there any known issues with say, one thread does
> epoll_wait()s while other threads may be doing epoll_ctl()s?

There is no known problem in using epoll_ctl() in one thread while another
does epoll_wait().
I suggest you to ask Valgrind to take a look at you binary. Since I have
no clue of what your software does, please create the *minimal* code
snippet that exploit the eventual problem, and post it.

- Davide