Home > other >  Epoll how to deal with a large number of connections, please?
Epoll how to deal with a large number of connections, please?

Time:09-23

Although a thread can manage all connection, but this is not the equivalent of a serial?
There are 10000 socket, for example, don't want to for loop one by one to deal with? The efficiency is high

CodePudding user response:

Have a heap of pattern, such as synchronous and asynchronous, 10000 socket is not every time each socket has data, epoll is equivalent to the select is of high efficiency, to be more efficient, currently only DPDK trying
  • Related