Function Calls for Interaction Between C Language and Operating Systems

Function Calls for Interaction Between C Language and Operating Systems

Function Calls for Interaction Between C Language and Operating Systems When developing applications, the C language is often used for direct interaction with the operating system. This capability makes C a preferred language for many system-level programming and embedded development tasks. This article will introduce how to call relevant operating system functions using C to … Read more

Multiprocessing: The Multi-Process Tool That Makes Your Python Code Fly!

Multiprocessing: The Multi-Process Tool That Makes Your Python Code Fly!

▼ Click the card below to follow me ▲ Click the card above to follow me The Python multiprocessing library, Multiprocessing, is simply a savior for parallel computing! Imagine you have a bunch of compute-intensive tasks; the traditional single-threaded approach is like a snail climbing a mountain, while Multiprocessing is like installing a turbocharger. Basic … Read more

Basic Principles of Linux Permission Control

Basic Principles of Linux Permission Control

(Click the blue text above to quickly follow us) This article is recommended by the original author (Lü Kai) Below are examples of user and group information. The password information in /etc/shadow is stored encrypted and will not be exemplified. $cat /etc/passwd |head –n5 root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync $cat /etc/group |head –n5 root:x:0: daemon:x:1: … Read more

Essential Linux Memory Monitoring Commands Explained

Essential Linux Memory Monitoring Commands Explained

Click the blue “Most Programmer” to follow me! Add a “star“, every day at 18:03 to learn technology together The commands include: 1. The free command, which displays the system memory status, including physical memory, swap memory, shared memory, and system cache usage; 2. The cat /proc/meminfo command, which reads the contents of the /proc/meminfo … Read more

Essential for Linux Beginners! The pstree Command: A Visual Representation of Process Trees

Essential for Linux Beginners! The pstree Command: A Visual Representation of Process Trees

In Linux systems, process management is a very important function. The pstree command displays running processes in a tree diagram format, which is more intuitive than the ps command, making the output visually appealing. Today, we will learn about this super useful command—pstree.1. What is the pstree Command?The pstree command is used to display running … Read more

Applications of C Language in Operating Systems

Applications of C Language in Operating Systems

Applications of C Language in Operating Systems The C language is a widely used computer programming language that has become an important tool for operating system development due to its ability to efficiently interface with hardware operations. This article will introduce several applications of C language in operating systems, including process management, memory management, and … Read more

Common Linux Commands – pkill: Send Signals to Processes by Name or Other Attributes

Common Linux Commands - pkill: Send Signals to Processes by Name or Other Attributes

Click the business card below to follow the public account and star it to receive my latest shares.Reply in the background with Embedded Learning Materials to get a learning package👇👇👇 Introduction pkill stands for “process kill” and is used to terminate processes. It allows you to send signals to one or more processes by their … Read more

Writing a Book on Linux Kernel Principles is No Easy Task

Writing a Book on Linux Kernel Principles is No Easy Task

Hello everyone, I am Bug Jun~ In most people’s impression, writing a technical book is just about organizing what you know. However, when the subject is the Linux kernel, it becomes like performing ballet on a tightrope — one of the most complex open-source software in the world, a giant system composed of 28 million … Read more

Linux Shell (1) – Managing Processes

Linux Shell (1) - Managing Processes

1. Exploring Processes in Linuxps Command The key to using the ps command is not to memorize all available options, but to remember the ones that are most useful to you. Most Linux system administrators will keep a set of commonly used options in mind to extract useful process information, while referring to documentation when … Read more

Linux pidof Command

Linux pidof Command

Linux<span>pidof</span> Command 1. Overview In a Linux system, a process is an instance of a program that is currently running. Each process has a unique Process ID (PID). When performing system administration, performance debugging, resource control, and security protection, it is often necessary to know the PID corresponding to a specific program.<span>pidof</span> is a command … Read more