1, What is a deadlock For example, if thread a occupies resource 1, thread b occupies resource 2, thread b needs resource 1 and thread a needs resource 2, a deadlock will occur In the deadlock solution, log and gdb debugging can be used when the number of threads is small log and gdb cannot be used to solve the problem of too many thre ...

Posted by pentinat on Thu, 10 Mar 2022 17:25:19 +0100

## When playing with roommates, the time of King glory, use c language to realize a three piece chess game (detailed explanation)

ย  catalogue ๐ What is Sanzi ๐ create a file ๐ Game menu ๐ Post selection ๐ Create a game function ๐ Create a chessboard ย  ย  ย  ย  ย ๐ Chess player ย  ย  ย  ย  ย ๐ Computer chess ย  ย  ย  ย  ย ๐ Judge whether the chessboard is full ย  ย  ย  ย  ย ๐ Judge whether to win or lose ๐ What is Sanzi Sanzi is a kind of black and white chess. ...

Posted by neo777ph on Thu, 10 Mar 2022 16:56:09 +0100

## C language to calculate linear equations

Today, let's solve linear equations with c. There are two ways to solve linear equations manually. 1. Solve by elimination 2. Solve through matrix determinant, etc Now we want to use c language to solve linear equations with determinant. Before solving, we must first learn the knowledge of determinant. If you don't know determinant, please ...

Posted by mrwhale on Thu, 10 Mar 2022 09:20:42 +0100

## Project C - book borrowing system

Title: book borrowing system Function: the system requires the following functions: 1. Administrator mode: manage book information and customer information; 2. Customer mode: complete customer borrowing query requirements. 3. Addition, deletion, modification and query function: complete the addition, deletion, modification, query and display of ...

Posted by outsidaz on Wed, 09 Mar 2022 21:34:06 +0100

## [data structure - C implementation] sequence table

catalogue 1. Linear table 2. Sequence table 2.1 concept of sequence table 2.2 interface 3. Interface implementation 3.1 tail insertion of sequence table 3.2 # sequential header insertion 3.3 # insert data at the specified location 3.4 delete the end of the sequence table 3.5 deletion of sequence header 3.6 delete data at the spec ...

Posted by sith717 on Wed, 09 Mar 2022 17:17:26 +0100

## Operator explanation Part 1

Shift operators Shift right The right shift is divided into: Arithmetic shift: discard the right and fill the original symbol bit on the left Shift left: 0, fill right: 0 Positive shift method A binary number contains the inverse complement of the original code When shifting, the complement is moved Positive number For example: int a ...

Posted by Andrew R on Wed, 09 Mar 2022 13:04:16 +0100

## Stack structure review (pathfinding problem)

I wrote it a long time ago, the sixth blog of newcomers The default direction is to walk to the right (0) from (1,1). When preparing to walk to the right, first calculate the coordinates of the landing point after walking to the right, that is, (1,2), and then judge whether (1,2) is a wall (judge whether it is 0). If it is a wall, change the d ...

Posted by witt on Wed, 09 Mar 2022 12:18:01 +0100

## [advanced analysis of C language] 16 Analysis of bitwise operators in C language

Article catalogue 1, Bitwise operator analysis 2, Tips 3, Bit operation and logic operation 4, Summary 1, Bitwise operator analysis Bitwise operators in C language Bit operators directly operate on bit bits, which is the most efficient. &Bitwise AND|Bitwise OR^Bitwise XOR~Reverse<<Shift left>>Shift right Move left and ...

Posted by shivabharat on Wed, 09 Mar 2022 04:10:52 +0100

## Introduction to stack (c language implementation)

preface When you use the browser to surf the Internet, almost all browsers have a back button. After you click it, you can return to the previously loaded web pages in reverse order of access order. There are many similar operations in life. Using word undo, their principle is a data structure we will introduce next - stack. 1, What is a ...

Posted by jimmyo on Tue, 08 Mar 2022 22:24:00 +0100

## Bitwise operator in C language

1, Bitwise logical operator 1. Binary inversion or bitwise inversion:~ Unary operator ~ changes 1 to 0 and 0 to 1. example: ~(10011010) // expression 01100101 // result newval = ~val; // The value of Val will not change, and val will be inversely assigned to newval 2. Bitwise AND:& Binary operator &, which compares an operand ...

Posted by Ash3r on Tue, 08 Mar 2022 14:14:21 +0100