Comprehensive Guide to Thread Classification

1. NPT is a general-purpose American standard tapered pipe thread with a thread angle of 60°. PT thread is a British standard tapered thread with a thread angle of 55°, commonly used for sealing. British pipe threads are fine threads; coarse threads have a larger thread depth, which severely reduces the strength of the external … Read more

Virtual Serial Port Driver in Linux (Part 1)

Virtual Serial Port Driver in Linux (Part 1)

Introduction Recently, I prepared to implement a virtual serial port driver in Linux; however, since graduation, I have been engaged in bare-metal driver development, and thus I have gradually forgotten about device drivers in Linux. To achieve this functionality, I have searched for a lot of information online, but most of it only explains the … Read more

History of C Language Development

History of C Language Development

History of C Language Development The world originally had no computers; engineers created them out of necessity for their work. To inform the normal operation of computers, engineers invented programming languages. As the C language exam approaches, are you feeling as frantic and furious as I am? Today, let’s learn about the history of C … Read more

Analysis of ARM Assembly and C/C++ Interoperability

Analysis of ARM Assembly and C/C++ Interoperability

Interoperability Between C Language and ARM Assembly Language 1. Accessing C Language Global Variables from Assembly Global variables can only be accessed indirectly through their addresses. To access global variables in C, you must first introduce the global variable using the extern directive, and then load its address into a register. For unsigned char type, … Read more

The Story Behind Processes: Mastering the Heart of Linux OS!

The Story Behind Processes: Mastering the Heart of Linux OS!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members. Note 【Official Account】 for quicker approval. 1. In-Depth Understanding of Basic Process Concepts Textbook Concept: An execution instance of a program, a program that is currently executing, etc. Kernel Perspective: An entity responsible for … Read more

Mastering Linux File I/O: In-Depth Exploration and Practical Skills from Open to Write!

Mastering Linux File I/O: In-Depth Exploration and Practical Skills from Open to Write!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join our 1000-member tech exchange QQ group, note 【public account】 for faster approval 1. Classic Review of C File Interfaces When using C, we typically use functions like fopen, fwrite, fread, and fclose to access files. 1.2 fwrite For example, I need to … Read more

Linux System Programming: File Read and Write

Click on the above “Mechanical and Electronic Engineering Technology” to follow us 1. API In Linux system programming, file read and write involve a series of standard POSIX APIs. Here are some commonly used file operation-related APIs and their detailed descriptions: open() Function The open() function is used to open a file and returns a … Read more

From Beginner to Expert: Comprehensive Guide to Linux Shell Scripting Techniques

From Beginner to Expert: Comprehensive Guide to Linux Shell Scripting Techniques

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, note 【Public Account】 for faster approval 1. Getting Input When building a simple Shell, the first step is to get input and obtain environment variables: it can run like a shell and retrieve some … Read more

Create Your First Progress Bar Application with Linux

Create Your First Progress Bar Application with Linux

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, note 【public account】 for faster approval 1. Concept of Newline In the Linux system, \n and \r are two important escape characters, representing newline and carriage return respectively, each having different functions and application … Read more

Dead Loop Hidden in Assembly Code

Dead Loop Hidden in Assembly Code

New User Registration for June Breadboard Community Get a Free IoT Learning Package The package includes: 1. 500 copies of “RT-Thread Device Driver Development Guide” 2. 16 lectures of RT-Thread online teaching courses 3. 10GB of IoT data downloads 👇 Scan to register and receive the package 👇 1 Introduction In my previous article, I … Read more