Network programming 06-server programming non-blocking IO, multiplexing

Table of contents 1. Four high-performance IO models in server programming 1. Block IO 2. Non-blocking IO 3. Multiplexing 4. Signal drive 2. Blocking IO 3. Non-blocking IO 1. The difference between blocking IO and non-blocking IO 2. How to set the non-blocking attribute to the file descriptor----fcntl() ----- man 2 fcntl 4. Multiple ...

Posted by vornn on Wed, 09 Nov 2022 03:11:14 +0300

Install Syncthing under windows and ubuntu

Syncthing A tool that can be used to synchronize files between different devices. Install under window There is a client version, which is maintained by the community. I downloaded it and tried it, but I did not follow the latest version. It seems that there are bug s in other articles, and the boss also gave other solutions. That is to say, ...

Posted by acabrera on Thu, 03 Nov 2022 01:12:47 +0300

Docker container ------ compose container cluster for quick orchestration

Table of contents introduction 1. Introduction to Docker-compose 2. YAML file format and preparation precautions 2.1, YAML file format 2.2. Notes on YAML format 2.3, YAML data structure 3. Docker Compose configuration common fields Fourth, Docker-compose common commands Five, compose deployment 6. Summary introduction         Doc ...

Posted by livvylove on Fri, 21 Oct 2022 00:38:33 +0300

linux installation of Damon database 8

PS. This test is only for the needs of the project, but a series of errors occurred when deploying and starting the program, which were recorded for future reference Install Damon database 1. Introduction to DM8 Database Dameng database management system is a high-performance database management system with completely independent intellectual p ...

Posted by misteraven on Wed, 19 Oct 2022 11:07:39 +0300

redis protocol and asynchronous mode

The artic l e refers to the C/C++linux service period advanced architecture system tutorial of <Zero Voice Education> to learn: Server high-level architecture 1. redis network 1.1, redis network Micro: reactor Composition: IO multiplexing + non-blocking IOIO Responsibilities: IO Detection and IO OperationsEvent: Asynchronous event ...

Posted by depraved on Tue, 18 Oct 2022 18:17:04 +0300

2.1 Use epoll and reactor to achieve server million concurrency

foreword This article continues the previous article 2.1.1 Network io and select, poll, epoll , using epoll and reactor to achieve server million concurrency. Why do you need to implement a sock_item? Each fd corresponds to a sock_itemsock_item contains rbuffer, wbuffer, rlength, wlength, events, callback, which enables each fd to have an in ...

Posted by leoden on Sun, 16 Oct 2022 04:08:00 +0300

File upload and download in Java (based on FTP protocol)

Role of FTP Server FTP servers (File Transfer Protocol Servers) are computers that provide file storage and access services over the Internet. They provide services according to the FTP protocol. FTP servers are often used for file sharing and transmission and are an essential part of the Internet. Our file upload and download function is the ...

Posted by Liquix on Mon, 19 Sep 2022 21:02:52 +0300

Detailed description of dock command

install https://docs.docker.com/engine/install/ Just install ce (community version) Start command Start docker systemctl start docker Close docker systemctl stop docker Restart docker systemctl restart docker docker settings start automatically when the service starts systemctl enable docker View Status View docker Running Sta ...

Posted by wata on Sun, 18 Sep 2022 21:43:12 +0300

2. Summary of test interview questions

Summary of test interview questions function test 1. Similarities and differences between app and web testing *** Same point: A.The test cases are the same. B.The same test method: will be checked according to the renderings UI,Test functionality against requirements documentation. C.Compatibility testing is required D.All need to test the s ...

Posted by Capnstank on Fri, 16 Sep 2022 21:56:24 +0300

Configure CUDA, cudnn and TensorRT environments under Ubuntu 22.04

Some time ago, CUDA, cudnn and TensorRT environments were configured under Ubuntu 18. Later, ros2 was installed. The ros2 version corresponding to Ubuntu 18.04 is dashing, and maintenance has been stopped. During use, it was found that many commands of dashing are not supported, so the system was simply upgraded to Ubuntu 20, so the environment ...

Posted by JNettles on Fri, 02 Sep 2022 22:25:22 +0300