With a single file descriptor, Is there any performance difference between select, poll and epoll and …?
The title really says it all. The and ... means also include pselect and ppoll.. The server project I'm working on basically structured with multiple threads. Each thread handles one or more sessions. All the threads are identical. The protocol takes care of which thread will host the session. I'm using an inhouse socket class that wraps things up. The point of interest is a checkread call which calls either poll (linux) or select (windows). In summary each thread currently calls poll on a single socket. From what I can tell, using epoll would only be of benefit if this thread was looking at