Linux system programming - interprocess communication (mmap memory mapping)

The previous article introduces the common communication methods between processes: nameless pipeline and named pipeline. This article introduces memory mapping. Memory mapping is very convenient when multiple processes access files to read and write. 1. Introduction to memory mapping mmap function The mmap function can map the files on the d ...

Posted by davejj on Tue, 15 Feb 2022 15:38:04 +0100

Deploying Python Falcon Web server using Gunicorn

preface python falcon is a framework closer to python wsgi. It has faster speed and higher performance than falsk and Django. But the disadvantage is that no one uses it, no one uses it and no one uses it. In addition, it is too young and close to the bottom. Many things have to be written by itself. There are not enough instances of official ...

Posted by bseven on Tue, 15 Feb 2022 10:27:33 +0100

Introduction to Redis architecture design

Redis master-slave replication brief introduction The read-write capability supported by a single redis is still limited. At this time, we can use multiple redis to improve the concurrent processing capability of redis. How these redis cooperate requires a certain architecture design. Here, we first analyze and implement the master / slave arch ...

Posted by playa4real on Tue, 15 Feb 2022 05:21:30 +0100

Node.js (II. Request response principle and HTTP protocol)

1. Server side basic concepts 1.1 IP address Unique identification of the device in the Internet. IP is the abbreviation of Internet Protocol Address, which represents the Internet Protocol Address. 1.2 domain name Because the IP address is difficult to remember, the concept of domain name came into being. The so-called domain name is t ...

Posted by balkar on Mon, 14 Feb 2022 17:02:16 +0100

How to install and configure NTP server and client on Linux?

preface NTP time synchronization is a time synchronization network technology. There are many kinds of time synchronization technologies, each of which has its own characteristics, and there are great differences in the time synchronization accuracy of different technologies. 1, Chrony 1. Brief description Note that NTP is a netwo ...

Posted by marty on Mon, 14 Feb 2022 16:01:15 +0100

awk report generator for Linux text processing three swordsmen

awk report generator for Linux text processing three swordsmen 1, awk 1. General Origin: born in Bell Labs in the 1970s, CentOS 7 now uses gawk AWK is named because it took three founders Alfred Aho, Peter weinberger, And Brian Kernighan's Family Name. Overview: AWK is a language for processing text files and a powerful text analysis tool. ...

Posted by Nukedesign on Mon, 14 Feb 2022 15:57:20 +0100

Add system call to print process pid in tree structure

Tip: pay attention to give the virtual machine a large enough disk, more than 60G 1, Design ideas Download linux kernel source code Add the system call number to the system call table Write custom system call functions in the system call header file Modify the kernel source code and add the implementation of custom system call fu ...

Posted by binto on Mon, 14 Feb 2022 14:38:00 +0100

Linux partition details

Linux partition details It is divided into two parts 1. Hard disk partition when installing Linux system. 2. Linux add hard disk partition 1. Hard disk partition when installing Linux system. Usually, the hard disk is about 500G. 1.1 partitions that must exist /The partition that must exist when partitioning. All level-1 directories are ...

Posted by dwest on Mon, 14 Feb 2022 08:32:45 +0100

muduo library base source code analysis IV (thread encapsulation)

Thread identifier: we know that every Linux process has a pid, type pid_t. Obtained by getpid(). POSIX thread under Linux also has an id, type pthread_id, by pthread_self(), the id is maintained by the thread library, and its id space is independent of each process (that is, threads in different processes may have the same id). The thread imple ...

Posted by nagrgk on Mon, 14 Feb 2022 07:58:46 +0100

Java foundation - network programming

B/S and C/S architecture B/S: Browser / server, which interacts with the server based on the browser program C/S: client / server, which interacts with the server based on the client program Java write server program 1. Meet business needs 2. Handle high concurrency 3. Big data processing Network protocol Syntax: structure of ...

Posted by furma on Mon, 14 Feb 2022 03:02:36 +0100