Process Base Points
Catalog
1. Definition of process
2. State and Transition of the Process
3. Process Control Block
4. Process number
5. Process Creation--fork Function
6. Process Creation
7. exit and _ exit function
8. Recycling of processes
1. wait function
2. waitpid function
9. Orphan Process
10. Zombie Process
1. Definition of p ...
Posted by welsh_sponger on Sun, 24 Oct 2021 09:36:04 -0700
NOI OJ 1.6 10: large integer addition C language
describe
Find the sum of two nonnegative integers with no more than 200 bits.
input
There are two lines. Each line is a non negative integer with no more than 200 bits. There may be redundant leading zeros.
output
One line is the result of addition. The result cannot have redundant leading 0, that is, if the result is 342, it cannot be out ...
Posted by webmaster1 on Sat, 23 Oct 2021 23:59:02 -0700
Binary tree C language implementation version of data structure 2021-10-24
Binary tree C language implementation version of data structure
What is a tree?
A Tree is a finite set of N nodes. It can be an empty Tree (n=0) or an empty Tree. Non empty trees have the following characteristics:
There is and only one node called rootIn addition to the root node, other nodes can be divided into m (M > 0) disjoint fi ...
Posted by Peuplarchie on Sat, 23 Oct 2021 08:30:00 -0700
M2021 spring C, Java introductory exercise paragraph I - variables, expressions, branches, loops 92-98
7-92 sum of special a series (20 points) Given two positive integers a and n that are not more than 9, it is required to write a program to find the sum of a+aa+aaa + +... + aa * a (n a).
Input format: Enter positive integers a and n that give no more than 9 in one line.
Output format: Output in one line in the format of "s = correspondi ...
Posted by jamesl73 on Sat, 23 Oct 2021 03:40:38 -0700
C language -- operators and expressions
Operator
arithmetic operator
+ plus-reduce*ride/except%Remainder (operand must be an integer)
Arithmetic conversion:
char -> int -> float -> double
Shift operators
Data storage: binary complement
<<Shift left (discard on the left and fill zero on the right)>> Shift right (1) logical shift: fill zero on the lef ...
Posted by deezzer on Sat, 23 Oct 2021 01:59:35 -0700
Freshman Meng's new c language can understand the version
Follow Freshman Meng Xin can read the c language version (I)_ Why_does_it_work blog - CSDN blog
Then I want to talk about the data
data
During initial programming, after we write the header file, we operate the data through multiple functions and a main function or through a main function. What is the data? As mentioned in the previous arti ...
Posted by gtal3x on Fri, 22 Oct 2021 23:59:20 -0700
(C language) stack and queue experiment
1. (1): judge whether open parentheses and closed parentheses in an arithmetic expression are paired.
Implementation code:
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 100
typedef struct{
char data[MAXSIZE];
int top;
}seqstack;
int MatchCheck(char str[]){
seqstack s;
int i = 0;
s.top = -1;
while (str[i] != '\0'){
...
Posted by lou28 on Fri, 22 Oct 2021 23:02:39 -0700
[C language] ☀️ Dynamic memory management and related functions
catalogue
1, Why is there dynamic memory allocation
2, Dynamic memory function
malloc and free
calloc
realloc
1, Why is there dynamic memory allocation
There are two ways to open up space we have learned before:
int main()
{
int a = 5;
char ch = 'b';
int arr[20] = { 0 };
}
The above ways of developing memory are tha ...
Posted by r.smitherton on Fri, 22 Oct 2021 20:10:50 -0700
[SHA256 of security algorithm] C language source code implementation of SHA256 abstract operation
summary
As we all know, the summary algorithm is also a particularly important existence in the security field, and SHA256 is one of the most common summary algorithms. Its characteristic is that it has low computational complexity. The equal length summary value can be obtained by inputting the original text of unequal length data, which ...
Posted by stuartc1 on Fri, 22 Oct 2021 20:04:40 -0700
Learning notes of "deep understanding of computer system" -- information representation and processing
Representation and processing of information
The three most important numbers represent:
Unsigned( unsigned)Coding is based on the traditional binary representation, which represents numbers greater than or equal to zero.
Complement( two' s-complement)Coding is the most common way to represent signed integers. Signed integers are numbers ...
Posted by wudiemperor on Fri, 22 Oct 2021 06:24:17 -0700