Detailed explanation of IO mode epoll

GitHub Linux source code Reference link 1 Reference link 2 Reference link III Reference link 4 Multiplexing technology: process multiple times on a single channel and process multiple events with a single thread.The IO mentioned here mainly refers to the network io. In Linux, everything is a file, so the network IO is often represented by the ...

Posted by nanban on Mon, 27 Dec 2021 16:56:18 +0100

epoll for IO multiplexing

select and poll are used in similar ways, with obvious disadvantages. Epoll is a unique IO reuse function of Linux, which is very different from the first two. The working principle of epoll can be summarized as three functions and two modes. The third function is epoll_create(), epoll_ctl(),epoll_wait(). The two modes are ET and LT ep ...

Posted by ilikemath2002 on Mon, 20 Dec 2021 15:49:06 +0100

Using select and poll/epoll of IO multiplexing to talk about network chat room

IO multiplexing: The IO multiplexing model is based on the demultiplexing function select provided by the kernel. Using the select function can avoid the problem of polling and waiting in the synchronous non blocking IO model. select This function is used to monitor the change of file descriptor - read / write or exception Parameters ...

Posted by kaszu on Thu, 16 Dec 2021 22:18:45 +0100