Re: select() efficiency / epoll

From: Davy Durham
Date: Tue Aug 23 2005 - 12:44:38 EST


So, I've been trying to use epoll.. on linux-2.6.11-6mdk


However, I'm getting segfaults because some pointers in places are getting set to low integer values (which didn't used to have those values).

The deal is that my application is multi-threaded, and I was wondering if epoll had issues if you use epoll_ctl while an epoll_wait is waiting or something like that. I'm also compiling with -D_MULTI_THREADED. I'm not new to threading, but am stumped at this point.

I'm not ruling out it being my code, but wanted to ask about epoll since it's so new.

Any ideas?

Thanks,
Davy


bert hubert wrote:

On Fri, Jul 22, 2005 at 04:18:46PM -0500, Davy Durham wrote:


Please forgive and redirect me if this is not the right place to ask this question:

I'm looking to write a sort of messaging system that would take input from any number of entities that "register" with it.. it would then route the messages to outputs and so forth..



Look at epoll, or libevent, which uses epoll to be quick in this scenario.





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/