Detailed explanation of linked list (single linked list, circular linked list, two-way linked list, Linux kernel "shared" double linked list) C/C++

The complete code of single linked list, circular linked list, two-way linked list and Linux kernel "shared" double linked list is attached at the end of the article catalogue 1, Detailed explanation of linked list principle 2, Implementation of single linked list algorithm 2.1 concept of single linked list   2.2 single link ...

Posted by jbradley04 on Tue, 16 Nov 2021 20:49:42 -0800

Package and generate an executable jar package using Maven implementation: detailed configuration explanation is attached

1. Demand The project shall be packaged to meet the following requirements: 1. Make a Zip package for the whole project, including the application, the jar package that the application depends on, and the documentation 2. The jar package of the project can execute the Main function in different classes 3. The jar package of the project source ...

Posted by tgavin on Tue, 16 Nov 2021 20:07:42 -0800

[introduction to Linux] basic IO

✔ Review the interface of C file When learning C language, we learned some interfaces of C language for file operation. There are fopen, fclose, fputc, fgetc, fputs, fgets, fprintf, fscanf, fread, fwrite, etc Briefly review with a piece of code: #include<stdio.h> #include<string.h> int main() { FILE* fp=fope ...

Posted by utdfederation on Tue, 16 Nov 2021 17:48:11 -0800

2021-2022-1 20212806 Linux kernel principle and analysis week 9

1, Process scheduling and process switching in Linux system (1) Process mobilization 1. In the interrupt processing process (including clock interrupt, I/O interrupt, system call and exception), directly call schedule or return to user status according to need_ The resched tag calls schedule. 2. The kernel thread can directly call schedul ...

Posted by Francky683 on Tue, 16 Nov 2021 08:20:42 -0800

Analysis of NUMA mechanism

What is NUMA? NUMA (non uniform memory access) refers to Non-Uniform Memory Access. In order to better explain what NUMA is, we need to talk about the background of NuMA's birth. Background of NUMA's birth In the early stage, all CPUs access memory through the bus. At this time, all CPUs access memory "consistently", as shown in th ...

Posted by beta0x64 on Tue, 16 Nov 2021 04:17:22 -0800

Chapter 10 network protocol and management configuration

3.5.7 sub network division Sub network division: divide a large network (with more hosts) into multiple small networks (with less hosts), reduce the number of host ID bits, increase the number of network ID bits, and borrow the network ID bit from the host ID bit The number of subnets divided is determined by the bits borrowed from the host I ...

Posted by Darghon on Tue, 16 Nov 2021 02:00:41 -0800

Linux User & User Group Management

1. Users & User Groups Linux is a multi-user and multi-task operating system. The Linux system supports multiple users to log on at the same time. Different users can perform different tasks within their permissions without affecting each other. Corresponding relationships between users and user groups: One-to-one: A user can exist in a ...

Posted by Takuma on Fri, 12 Nov 2021 13:18:45 -0800

Font-type display of dot-matrix Chinese characters on Linux

I Chinese Character Dot Matrix Font Library Code Location Code _In the national standard GD2312-80, all Chinese characters and symbols are assigned to a square array of 94 rows and 94 columns. Each row of the square array is called a "zone", numbered from 01 to 94, and each column is called a "bit", numbered from 01 ...

Posted by weekenthe9 on Fri, 12 Nov 2021 11:58:38 -0800

Linux operating system disk partitions, instructions

1. Linux Disk Partitions   Total: 20G Linux Disk Partition Partition nameCatalogcapacityPrimary partition/>2Gboot partition/boot500M or soSwap partition/swap500~600MUser Partition/homeRemaining All /boot: Used to store files necessary for Linux startup, that is, the contents of the boot partition we built/home:Home directory for ...

Posted by danelkayam on Fri, 12 Nov 2021 09:43:46 -0800

Font reading and display of dot matrix Chinese characters under Linux

1, Principle of Chinese character lattice font (1) Chinese character coding 1. Location code    it is stipulated in the national standard GD2312-80 that all national standard Chinese characters and symbols are distributed in a square matrix with 94 rows and 94 columns. Each row of the square matrix is called an "area", numbe ...

Posted by gbuck on Fri, 12 Nov 2021 09:02:09 -0800