Chapter 6: The Hourglass of Lifespan and the Binding of Divine Thought

Chapter 6: The Hourglass of Lifespan and the Binding of Divine Thought

Chapter 6: The Hourglass of Lifespan and the Binding of Divine Thought — The Truth Behind I/O Bottlenecks [Location: Operating Realm · Time Tower · Trial Chamber] Linus (Li-Nux) brought his disciples to a massive hourglass tower. Countless runes were carved on the tower, each representing the life flow of a process. “In the Operating … Read more

Chapter 3: The Book of Life and Death – Soul Searching and Heavenly Path Taboo

Chapter 3: The Book of Life and Death - Soul Searching and Heavenly Path Taboo

Chapter 3: The Book of Life and Death – Soul Searching and Heavenly Path Taboo [Location: Operation Realm · Scripture Pavilion · Core Consciousness Sea] Li-Nux had just recovered from the shock of the “Pending Star Map,” but the figure of Ancestor Stevens had not dissipated; instead, it became more solid. With a wave of … Read more

Chapter 4: A Guide to Various Methods of Process Termination

Chapter 4: A Guide to Various Methods of Process Termination

Chapter 4: A Guide to Various Methods of Process Termination — Five Ways to Trigger a System Crash [Location: Operating Realm · Trial Ground · Outer Sect of Process School] In the realm of cultivation (Operating Realm), the ultimate fate of every cultivator (process) is often “termination”. While most cultivators aspire to achieve longevity (guarding … Read more

Detailed Explanation of Linux Core Dump

Detailed Explanation of Linux Core Dump

⌊LCG Technology Space⌉Focus on sharing technical articles on C/C++, Linux applications/drivers, audio and video, QT, and various frameworks. 👇 We sincerely recommend you to follow us👇 What scenarios produce Core Dumps How to use Linux Core Dumps Enable core dump functionality Modify the path and format for saving core files Use gdb to debug core … Read more

Multicore Real-Time Operating System RTEMS (21) – Active Scheduling

Technical experience sharing, welcome to follow and provide guidance. Based on our understanding of the scheduling scenarios in RTEMS, the first thing to note is active scheduling. Its implementation is _Scheduler_Schedule. From the context of the code, we can see that when the system sends a signal, if the thread’s context is set to non-preemptive, … Read more

Types of Signals in Linux

Types of Signals in Linux

Signals 1. Types of Signals 1.1 Special Keys in Terminal ctl + c generates SIGINT ctl + z generates SIGTSTP ctl + \ generates SIGQUIT kill -9 pid generates SIGKILL 1.2 Hardware Exceptions Illegal Instruction Privilege Instruction Division by Zero Segmentation Fault Bus Error 1.3 Software Exceptions Illegal Memory Access Out of Bounds Access Stack … Read more

The Signal Delivery Process in the Linux Kernel

The Signal Delivery Process in the Linux Kernel

1 Execute the default action of the signal 2 Capture the signal 3 Re-execute the system call 4 x86_64 architecture – do_signal() Previously, we introduced how the kernel notices the arrival of a signal and calls related functions to update the process descriptor so that the process can receive and handle the signal. However, if … Read more

How to Pass Signals While Debugging with GDB

How to Pass Signals While Debugging with GDB

As the title suggests, let’s get started. First, prepare the program as follows: #include <iostream> #include <csignal> #include <atomic> std::atomic<int> running(1); void signalHandler(int signal) { std::cout << "Received signal " << signal << std::endl; running = 0; } int main() { signal(SIGTERM, signalHandler); while(running.load()) { } std::cout << "End" << std::endl; return 0; } After … Read more

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers

Understanding the Basic RTOS Features of VxWorks: A Practical Guide for Engineers VxWorks is a real-time operating system (RTOS) developed by Wind River, widely adopted in mission-critical embedded systems. This article will introduce the fundamental features of VxWorks, including task control, inter-process communication (IPC), signal handling, and virtual devices, along with practical code examples. Why … Read more

Interrupt Handling and Interrupt Service Routines in C Language

Interrupt Handling and Interrupt Service Routines in C Language

In the development of embedded systems and operating systems, interrupts are an important mechanism. They allow programs to respond immediately to specific events without the need to constantly poll device status. This article will provide a detailed introduction to interrupt handling in C language and its related concepts, suitable for beginners to learn. What is … Read more