in reply to Re^4: Allowing user to abort waitpid (select)
in thread Allowing user to abort waitpid
With epoll and other similar mechanisms, it's only necessary to register all 'interesting' descriptors once, and then, when IO happens on some descriptor, the kernel checks if the application is interested in it. Therefore, performance is determined by the number of IO events.
If we have a ton of descriptors, but, at any given time, IO actually happens only on some small percent of them, epoll will vastly outperform select, because, yes, it does less 'polling'.Yeah, when I use select, it doesn't burn CPU when waiting.But do you have 10k concurrent connections :)
|
|---|