Linux Process Scheduling and Kernel Implementation

Linux Process Scheduling and Kernel Implementation

This article mainly introduces Linux process scheduling and kernel implementation, in the following order: key data structures of process scheduling -> different scheduling methods -> scheduling triggers and process switching.1. Key Data Structures of Process Management1.1 task_struct task_struct is the structure used by the kernel to describe a process, including scheduling policy, priority, and other … Read more

In-Depth Analysis of PR and NI in Linux Top Command

This article is an original work by Teacher Liu from Yunbei Education. Please respect intellectual property rights. When forwarding, please indicate the source. No plagiarism, adaptation, or unauthorized reproduction is allowed. In the Linux system, the top command is an important tool for monitoring system resources and process status. In the interactive interface of top, … Read more

Comprehensive Analysis of the Linux Kernel Composition: The Core Architecture of Operating Systems

Comprehensive Analysis of the Linux Kernel Composition: The Core Architecture of Operating Systems

In the rapidly evolving field of information technology, operating systems serve as the cornerstone of the digital world, supporting the efficient operation of various devices and software. Among the vast landscape of operating systems, Linux shines with its unique charm. Its open-source nature attracts countless developers worldwide to contribute to its continuous refinement; its high … Read more

MIT6.S081 – Lab7 Multithreading | Process Scheduling

MIT6.S081 - Lab7 Multithreading | Process Scheduling

This article is a lab note for Lab7 of the MIT6.S081 Operating Systems course. The task is to simulate kernel process switching by implementing a user-level thread switching functionality. Additionally, I will introduce how xv6 achieves process switching by examining the source code. Lab7 address: https://pdos.csail.mit.edu/6.828/2020/labs/thread.html My lab records: https://github.com/yibaoshan/xv6-labs-2020/tree/thread Before starting the experiment, you … Read more

Common Process Scheduling Algorithms

Common Process Scheduling Algorithms

Overall Reading 1400 Words Reading Time 5 Minutes Prerequisite Knowledge Difference Between Preemptive and Non-Preemptive Scheduling? Non-Preemptive Scheduling: Once a process starts executing, the operating system will not allocate the CPU to other processes until the process voluntarily releases it. Preemptive Scheduling: The operating system can forcibly pause the execution of a running process and … Read more