Development and growth path (18) -- back end of DIY management system in sophomore year

preface Originally, I thought this project was very incompetent. After all, I didn't pass the stress test in the end. I dare not submit my resume even when I submit it. But after communicating with the counselor yesterday, what's embarrassing? Even if I'm working on a project now, it's difficult to meet people's expectations. But what ...

Posted by Brown on Wed, 09 Feb 2022 11:29:41 +0100

Linux - basic use of epoll

catalogue 1, Epoll event driven process 2, Reactor design pattern 3, Epoll correlation function 1. Create: epoll_create 2. Add, modify or delete events of interest to the EPOLL object: epoll_ctl 3. Collect events that have occurred in the events monitored by the specified epoll: epoll_wait 4, Trigger mode 1. Level_triggered 2. Edge_t ...

Posted by chomedey on Wed, 26 Jan 2022 04:52:12 +0100

Multiplex IO transfer server

Multiplex IO transfer server The multi-channel IO transfer server is also called multi task IO server. The main idea of this kind of server is that the application program no longer monitors the client connection, but gives it to the kernel to replace the application program monitoring file. There are three main methods used: select, poll and ...

Posted by ROCKINDANO on Mon, 17 Jan 2022 08:43:18 +0100

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