I am thinking of epoll based tcp server programming. For best performance, I also want to implement multi-core support. But during my research, the following question arose: Is it faster to call two epoll_wait() -Calls from two different threads, each of which observes its own file descriptors on a dual core kernel? Or is it as fast as calling just one epoll_wait() that keeps track of all file descriptors?
Since the kernel is monitoring file descriptors, I think it doesn't matter how many threads I use for user space calling epoll_wait() ?
Filipe santos
source share