Linux system programming - (pthread) thread communication (spin lock)

1. Introduction to spin lock Spin lock will be used in both kernel programming and application layer programming; Spinlock is similar to mutex. Instead of blocking the process through sleep, it is always in a busy state (also known as spin) before obtaining the lock. Spin locks can be used when the lock is held for a short time and the thread ...

Posted by jasonok6 on Tue, 25 Jan 2022 09:30:50 +0100

page fault of linux (AMD64 Architecture)

The application or kernel runs in the virtual memory space. After kernel {startup, if a virtual address wants to access the physical memory, it needs to perform address translation through the CPU MMU hardware. The logical process of accessing the physical memory by the whole virtual address is as follows: After kernel # startup, the appli ...

Posted by Alanmoss on Tue, 25 Jan 2022 09:22:43 +0100

Linux explores 01-stty and keyboard signals

-----Last updated [December 20, 2021]----- 1, Introduction The original Unix setup assumed that people used terminals to connect to host computers. More than 30 years later, this is still the case, even running Unix on your own PC. Over the years, terminals have developed into many different types and provided many different types of keyboards, ...

Posted by tomz0r on Tue, 25 Jan 2022 08:35:54 +0100

Qunhui installs frp to achieve intranet penetration (2022)

1, Environment ECS (lightweight application server)Heiqunhui DSM 6.2-23739frp version 0.38.0 2, ECS frps configuration The ECS uses Tencent cloud. It's slow to download GitHub directly with wget, and it's still stuck in the end. First download it and copy it to the server. FinalShell is recommended here. It comes with file management. It's t ...

Posted by Randomizer on Tue, 25 Jan 2022 07:56:24 +0100

Getting started with nginx

The configuration system of Nginx consists of a main configuration file and some other auxiliary configuration files. These configuration files are plain text files, all located in the conf directory under the Nginx installation directory A line starting with # or a line preceded by several spaces or tabs and followed by # in the configuration ...

Posted by RDFrame on Tue, 25 Jan 2022 06:52:12 +0100

Add of Cmake command_ subdirectory

1, Introduction This command is to add a subdirectory and build the subdirectory. The command format is add_subdirectory (source_dir [binary_dir] [EXCLUDE_FROM_ALL]) Command parsing source_dirRequired parameter. This parameter specifies a subdirectory that should contain cmakelists Txt file and code file. The subdirectory can be a relative ...

Posted by astoller on Tue, 25 Jan 2022 02:51:59 +0100

Process of installing anaconda and pytorch in linux and sharing of error reports

Note: the bugs in this article are all encountered during the installation process. After finding out the reasons, the command is optimized. Therefore, if you type according to the command, you should not encounter the following bugs It's not easy for new bloggers to sort out. If your problem is solved, please give a praise~~~~~~ I Installing ...

Posted by j0n on Tue, 25 Jan 2022 02:12:33 +0100

Docker Compose exercise: voting App

Docker Compose classic example: Example Voting App GitHub address: https://github.com/dockersamples/example-voting-app For students with poor network, I have downloaded the source code, address: https://download.csdn.net/download/weixin_48447848/77354937 Example Voting App Simple distributed applications running across multiple Docker conta ...

Posted by dhimok on Tue, 25 Jan 2022 01:22:18 +0100

ucore lab3 learning notes sorting

With the help of page table mechanism and interrupt exception handling mechanism, this experiment completes the implementation of page fault exception handling and fifo page replacement algorithm. ucore established mm_struct and vma_struct data structure, which describes the legal memory space required by ucore simulation application. vma_ The ...

Posted by robot_nader on Mon, 24 Jan 2022 21:25:48 +0100

Nginx optimized small operation

Nginx optimized small operation 1, Hidden version In the production environment, the version number of Nginx needs to be hidden to avoid security vulnerability disclosure. Because each version has its own defects to avoid defect exposure and attack. 1. How to view version number: 1. Local: curl -I http://192.168.65.129 2. Browser: directly ...

Posted by am_25 on Mon, 24 Jan 2022 19:21:15 +0100