Linux system calls syscall_ Detail of define
Linux source code can go here https://mirrors.edge.kernel.org/pub/linux/kernel/ Download. This article is based on linux-2.6.34. The code of the old version is simpler and easier to understand.
Little friends who have learned Linux system programming should know that the entry functions of Linux system calls in the kernel are sys_xxx, ...
Posted by bronzemonkey on Sun, 16 Jan 2022 09:07:13 +0100
Principle, design and implementation of thread pool
Principle and implementation of thread pool
1. What is a thread pool
Thread pool is a form of multi-threaded processing. Threads are created in advance and placed in a queue for management. When a task needs to be processed, the task is assigned to a specific thread for execution. Improve performance by reducing thread creation, destruction, ...
Posted by sharpmac on Sun, 16 Jan 2022 05:19:29 +0100
Dynamic memory management: malloc, calloc, realloc, free
1, Why is there dynamic memory allocation
đ Before, we opened up space like this:
int i = 20; // Open up 4 bytes in stack space char arr[10] = { 0 }; // Open up 10 bytes of continuous space in the stack space
characteristic
one ď¸âŁ The size of the open space is fixed
two ď¸âŁ When an array is declared, it must contain a constant ...
Posted by irn3rd on Sat, 15 Jan 2022 17:28:47 +0100
Operator explanation
1, Arithmetic operator
There are five arithmetic operators: + - * /%. Because the operator has two operands. Also known as binocular operator
For the / operator, both operands are integers and perform integer division. Performs floating-point division when at least one operand is floating-point
#include <stdio.h>
int main() {
int ...
Posted by samusk on Sat, 15 Jan 2022 13:11:41 +0100
C language: the second layer of pointer (Advanced)
catalogue
1. Character pointer
 2. Pointer array
3. Array pointer
4. Array parameters and pointer parameters
5. Function pointer
6. Function pointer array
7. Pointer to function pointer array
8. Callback function
When we first learned the C language, we had a preliminary contact with the existence of pointer and had a general ...
Posted by Garethp on Sat, 15 Jan 2022 04:11:22 +0100
Functions of C language learning notes
function
Introduction of problems Sometimes, we often need to input an array in another program. For example:
int a[10];
for(i = 0;i < 10;i++)
{
scanf("%d",&a[i]);
}
int b[5];
for(i = 0;i < 5;i++)
{
scanf("%d",&b[i]);
}
...
Functions: reuse code blocks.
function What is a function? Function function A funct ...
Posted by Doom87 on Sat, 15 Jan 2022 01:26:46 +0100
[concurrency 1] multiprocessor programming: from getting started to giving up
This is bilibili - [End] 2020 Nanjing University "operating system: design and implementation" (Jiang Yanyan) Course notes for
Summary of this lecture:
What is concurrency, why concurrency is needed, and a new understanding of concurrent programming
Abandon the atomicity, sequence and visibility of the program
Concurrency an ...
Posted by amal.barman on Sat, 15 Jan 2022 00:25:49 +0100
MSP430F5529 DriverLib library function learning notes GPIO
Platform: Code Composer Studio 10.3.1
MSP430F5529 LaunchPad⢠Development Kit (MSPâEXP430F5529LP)
Hard knowledge
1, MSP430 MCU port overview
General I/O port is the most important and commonly used peripheral module of MSP430 single chip microcomputer. The general I/O port can not only be directly used for input / output, but also prov ...
Posted by natronp on Sat, 15 Jan 2022 00:23:42 +0100
Implementation of C language address book
The whole member management system is designed as data addition module, data modification module, data deletion module, data search module by name or category, data browsing module, data emptying module and data storage module.
contact.h
// Header file
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include & ...
Posted by FramezArt on Fri, 14 Jan 2022 22:47:14 +0100
Complete self-study C (dry goods) - documents
catalogue
1, Document classification
Program file
data file
II. Documents
file name
field name pointer
Opening and closing of files
Sequential reading and writing of files
Random reading and writing of files
Text and binary files
End judgment of documents
file buffer
case
Program filedata file
1, Document classification
...
Posted by Potatis on Fri, 14 Jan 2022 10:42:51 +0100