[learning notes on multithreaded programming 8] thread synchronization using mutex
Statement: This study note is a summary based on the tutorial and combined with your own learning situation. It is not original. If you want to see the original version, please see the C language Chinese network Multithreaded programming (C language + Linux) , the website has many good programming learning tutorials, especially about C language ...
Posted by Atomic Taco on Wed, 19 Jan 2022 11:49:16 +0100
Basic syntax you must know when you first know C + +
catalogue
Namespace
Definition of namespace
C + + input & output
Default parameters
Function overloading (important syntax knowledge in C + +)
Namespace
stay
C/C++
There are a large number of variables, functions and classes to be learned later. The names of these variables, functions and classes will all exist in the gl ...
Posted by raghavan20 on Wed, 19 Jan 2022 09:44:23 +0100
Operating system course design - Windows process management
1, Experimental purpose (1) Learn to use VC to write basic Win32 console application (console application). (2) By creating processes, observing the programming and debugging operations of running processes and terminating processes, we can further get familiar with the process concept of the operating system and understand the "life" ...
Posted by hiberphoptik on Wed, 19 Jan 2022 02:33:24 +0100
linux system programming - communication mechanism between processes or threads
1. Classification of communication mechanism
Communication mechanisms between linux processes or threads are mainly divided into three categories: Communication: these tools focus on data exchange between processes. Synchronization: these processes focus on synchronization between processes and thread operations. Signal: in a specific scenario ...
Posted by darkwolf on Tue, 18 Jan 2022 20:59:57 +0100
Individual competition of the 9th "Turing Cup" NEUQ-ACM Programming Competition
A. Current situation at the end of University
Title Description
As a college student, it's time to check your final grade again. When your grade is greater than or equal to 60, please output "jige,haoye!", Otherwise, output "laoshi,caicai,laolao".
Enter Description:
One line, an integer x represents your score (0 < ...
Posted by lansing on Tue, 18 Jan 2022 18:58:17 +0100
Section 2. Advanced pointer
Section 2. Advanced pointer
1. Character pointer
Among the pointer types, we know that one pointer type is character pointer char *;
be careful:
const char* pstr = "hello";
Instead of putting the string hello into the character pointer pstr, the essence is to put the address of the first character of the string hello into pstr.
# ...
Posted by TutorMe on Tue, 18 Jan 2022 12:45:44 +0100
Array in c language
1. Creation and initialization of one-dimensional array
1.1 creation of array
An array is a collection of elements of the same type.
How to create an array: Array element type array name [constant expression]; eg. int arr[5]; char ch[100];
Error prone point in VS compiler: [] should be a constant expression int n = 5; int arr[n];(×)
in ...
Posted by lcoscare on Tue, 18 Jan 2022 12:08:52 +0100
C language learning notes - P23 (< C language high level > + advanced level of pointer < 1 > + problem example + illustration)
We have already touched the topic of pointer in the chapter of pointer at the primary stage. We know the concept of pointer:
1.
A pointer is a variable used to store an address, which uniquely identifies a piece of memory space.
2.
The size of the pointer is fixed
4/8
Bytes(
32
Bit platform
/6 ...
Posted by dgs on Tue, 18 Jan 2022 00:59:52 +0100
There is an eye on the top of the canyon. Why don't we write a guessing number C language ourselves
What should you do if you always encounter an eye edge when galloping in the summoner Canyon? No problem! Teach you to guess numbers! Get rid of the trouble of eye edge and find the happy mood when playing small games!
To guess the number, we have to have a random number first. How do we generate it?
int main()
{
int a=rand();
printf("%d", ...
Posted by madmax on Mon, 17 Jan 2022 19:24:13 +0100
C language: Notes from introduction to advanced (full version)
The full text is about 20w words (errors, typographical problems or inaccuracies are inevitable in the first draft)
💭 preface
This series is suitable for readers who have been exposed to C language or have a basic understanding of C language. It is suitable for reviewing, consolidating and consolidating the foundation. There ...
Posted by dhie on Mon, 17 Jan 2022 18:05:43 +0100