Tagged articles
40 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Apr 18, 2026 · Fundamentals

Mastering Process Context Switching: What the CPU Actually Does

This article breaks down the fundamentals of process context switching, explaining CPU registers, program counters, the three-step switch routine, trigger conditions, performance impact, monitoring tools, and practical optimization techniques to help interview candidates answer confidently.

LinuxOperating SystemPerformance Optimization
0 likes · 29 min read
Mastering Process Context Switching: What the CPU Actually Does
Deepin Linux
Deepin Linux
Dec 21, 2025 · Fundamentals

Unlocking the Linux Kernel: A Beginner’s Roadmap to Core Architecture and Modules

This guide walks readers through the fundamentals of the Linux kernel, explaining its core subsystems, source tree layout, process management, memory handling, file systems, networking, device drivers, debugging tools, and practical learning resources, while providing code examples and command‑line utilities for hands‑on exploration.

Device DriversKernelLinux
0 likes · 54 min read
Unlocking the Linux Kernel: A Beginner’s Roadmap to Core Architecture and Modules
Deepin Linux
Deepin Linux
Oct 12, 2025 · Operations

Unlock Linux Performance: Mastering CFS Process Scheduling and Tuning

This comprehensive guide explains Linux’s Completely Fair Scheduler (CFS), covering its core principles, virtual runtime calculations, red‑black tree implementation, multi‑core load balancing, real‑time priority handling, and practical tuning techniques with full C++ examples to help developers and sysadmins optimize CPU allocation and system responsiveness.

CFSKernelLinux
0 likes · 66 min read
Unlock Linux Performance: Mastering CFS Process Scheduling and Tuning
Raymond Ops
Raymond Ops
Sep 5, 2025 · Fundamentals

Understanding Linux Process States, Scheduling, and Priority – A Deep Dive

This article explains Linux process states, how the kernel linked list works, commands for inspecting processes, the nature of zombie and orphan processes, priority handling, context switching, and the O(1) scheduler in the 2.6 kernel, providing a comprehensive overview for system developers.

LinuxO(1) SchedulerProcess States
0 likes · 19 min read
Understanding Linux Process States, Scheduling, and Priority – A Deep Dive
Deepin Linux
Deepin Linux
Sep 5, 2025 · Fundamentals

Mastering Linux Process Scheduling: Algorithms, Strategies, and Optimization

This comprehensive guide explains Linux process scheduling fundamentals, covering process states, core algorithms such as Round‑Robin, Priority, CFS, Multilevel Feedback Queue, and real‑time policies, while detailing timing triggers, influencing factors, and practical optimization techniques for databases and games.

CFSCPU allocationLinux
0 likes · 41 min read
Mastering Linux Process Scheduling: Algorithms, Strategies, and Optimization
Liangxu Linux
Liangxu Linux
Jun 29, 2025 · Fundamentals

From FCFS to Preemptive Multitasking: Lessons from 1960s IBM Scheduling

The article recounts a 1960s IBM system engineer’s struggle with process scheduling, tracing the evolution from simple First‑Come‑First‑Served queues through cooperative multitasking with a yield() call, to timer‑driven preemptive round‑robin and priority‑based algorithms, highlighting each method’s strengths and pitfalls.

FCFSOperating SystemsPriority Scheduling
0 likes · 7 min read
From FCFS to Preemptive Multitasking: Lessons from 1960s IBM Scheduling
IT Services Circle
IT Services Circle
Apr 30, 2025 · Fundamentals

Evolution of Process Scheduling: From FCFS to Preemptive Multitasking

The article traces the development of operating‑system process scheduling—from the naïve first‑come‑first‑served approach, through cooperative multitasking with a yield() system call, to timer‑driven preemptive round‑robin and priority schemes—highlighting each method’s strengths and shortcomings.

FCFSMultitaskingOperating Systems
0 likes · 6 min read
Evolution of Process Scheduling: From FCFS to Preemptive Multitasking
Deepin Linux
Deepin Linux
Jan 21, 2025 · Fundamentals

Understanding the Linux Process Scheduler: Concepts, Strategies, and Evolution

This article provides a comprehensive overview of the Linux process scheduler, explaining why scheduling is needed, how it works, the various scheduling policies such as real‑time and CFS, the mechanisms for priority and load balancing, and the historical evolution of Linux schedulers with code examples.

CFSKernelLinux
0 likes · 37 min read
Understanding the Linux Process Scheduler: Concepts, Strategies, and Evolution
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jan 7, 2025 · Fundamentals

Mastering Process Scheduling: From FCFS to Multilevel Feedback Queues

This article explains the distinction between preemptive and non‑preemptive scheduling and provides a concise overview of common process scheduling algorithms—including FCFS, SJF, HRRN, Round‑Robin, priority and multilevel feedback queue—highlighting their principles, advantages, and drawbacks.

Operating Systemsalgorithm analysisnon-preemptive scheduling
0 likes · 7 min read
Mastering Process Scheduling: From FCFS to Multilevel Feedback Queues
Liangxu Linux
Liangxu Linux
Dec 11, 2024 · Fundamentals

Why Do Processes Need Sleep? Inside Linux’s Sleep and Wake Mechanism

Processes must pause execution to wait for resources, and the Linux kernel provides sleep and wake mechanisms—implemented via functions like schedule_timeout_interruptible and try_to_wake_up—to efficiently relinquish CPU time, avoid busy‑waiting, and resume when resources become ready.

Linux kernelprocess schedulingsleep
0 likes · 10 min read
Why Do Processes Need Sleep? Inside Linux’s Sleep and Wake Mechanism
Liangxu Linux
Liangxu Linux
Nov 17, 2024 · Operations

Why Processes Need Sleep and Wakeup: Linux Kernel Mechanisms Explained

Processes represent execution contexts that include code and resources; to avoid wasteful busy‑waiting, operating systems let them sleep and later wake them, using mechanisms like schedule_timeout_interruptible, timers, and try_to_wake_up, which the Linux kernel implements through specific state changes and scheduling logic.

Linux kernelSystem Programmingprocess scheduling
0 likes · 10 min read
Why Processes Need Sleep and Wakeup: Linux Kernel Mechanisms Explained
Linux Kernel Journey
Linux Kernel Journey
Nov 3, 2024 · Fundamentals

Linux Kernel Source Walkthrough: The Five Core Subsystems

This article explains the Linux kernel architecture, breaks it into three layers and five key subsystems—process scheduling, memory management, virtual file system, network interface, and inter‑process communication—detailing their responsibilities, inter‑dependencies, and providing concrete code examples and diagrams.

IPCKernelLinux
0 likes · 29 min read
Linux Kernel Source Walkthrough: The Five Core Subsystems
Linux Kernel Journey
Linux Kernel Journey
Sep 25, 2024 · Fundamentals

Process Management & Scheduling (Part 0): Essential Kernel Structures

This article introduces the core Linux kernel data structures involved in process management and scheduling—task_struct, sched_entity, rq, and sched_avg—explaining their key fields, relationships, and how they enable the kernel to track process state, timing, memory, and load‑balancing decisions.

Linuxkernel structuresprocess scheduling
0 likes · 15 min read
Process Management & Scheduling (Part 0): Essential Kernel Structures
Linux Kernel Journey
Linux Kernel Journey
Sep 10, 2024 · Fundamentals

How BPF Powers the Linux sched_ext Scheduler: In‑Depth Implementation and Workflow

This article provides a comprehensive technical walkthrough of Linux's sched_ext scheduler extension, explaining how BPF enables custom scheduling policies, detailing the underlying CFS and EEVDF concepts, the new SCHED_EXT class, dispatch queues, kernel configuration, and practical code examples for building and testing BPF‑based schedulers.

BPFCFSEEVDF
0 likes · 19 min read
How BPF Powers the Linux sched_ext Scheduler: In‑Depth Implementation and Workflow
Liangxu Linux
Liangxu Linux
Mar 30, 2024 · Fundamentals

Essential Linux Kernel Q&A: Architecture, Memory Management, and Process Basics

This comprehensive Q&A explains Linux system composition, kernel placement, core subsystems, address translation, paging structures, process concepts, scheduling algorithms, interrupt handling, system calls, synchronization, deadlock avoidance, and the virtual file system, providing a solid foundation for operating‑system fundamentals.

InterruptsKernelLinux
0 likes · 19 min read
Essential Linux Kernel Q&A: Architecture, Memory Management, and Process Basics
Liangxu Linux
Liangxu Linux
Nov 19, 2023 · Fundamentals

How Linux Processes Sleep, Wake Up, and Avoid Invalid Wakeups

This article explains Linux process scheduling, the difference between TASK_RUNNING, TASK_INTERRUPTIBLE, and TASK_UNINTERRUPTIBLE states, shows code examples for putting a process to sleep and waking it, analyzes the invalid wakeup race condition, and presents kernel patterns that safely avoid such issues.

Kernelprocess schedulingwake up
0 likes · 11 min read
How Linux Processes Sleep, Wake Up, and Avoid Invalid Wakeups
Open Source Linux
Open Source Linux
Nov 10, 2023 · Fundamentals

Understanding Linux Process Sleep, Wakeup, and How to Avoid Invalid Wakeups

This article explains Linux process states, the difference between runnable, interruptible and uninterruptible sleep, how the scheduler and schedule() function manage sleep and wakeup, demonstrates code examples, and discusses the invalid wakeup problem with strategies to prevent it in kernel development.

Linuxinvalid wakeupprocess scheduling
0 likes · 11 min read
Understanding Linux Process Sleep, Wakeup, and How to Avoid Invalid Wakeups
Open Source Linux
Open Source Linux
May 25, 2023 · Fundamentals

Mastering Linux Process Sleep and Wake‑Up: Avoiding Invalid Wake‑Ups

This article explains Linux process states, how the scheduler puts processes to sleep and wakes them, describes the problem of invalid wake‑ups caused by race conditions, and provides kernel‑level coding patterns to prevent such issues while illustrating with concrete code examples.

KernelLinuxprocess scheduling
0 likes · 11 min read
Mastering Linux Process Sleep and Wake‑Up: Avoiding Invalid Wake‑Ups
Liangxu Linux
Liangxu Linux
May 5, 2023 · Fundamentals

Why Does the Kernel Enter an Idle Loop and How Does It Wake Up?

When no runnable processes are available, the kernel switches to an idle loop that repeatedly executes the HLT instruction until an interrupt occurs, after which it resumes normal scheduling by switching from the idle process to a ready task.

KernelOperating Systemhlt instruction
0 likes · 3 min read
Why Does the Kernel Enter an Idle Loop and How Does It Wake Up?
ITPUB
ITPUB
Feb 17, 2022 · Fundamentals

Mastering Linux Process Scheduling: From FCFS to CFS Explained

This comprehensive guide walks through the fundamentals of process scheduling in operating systems, covering scheduling concepts, OS classifications, process types, priority mechanisms, preemptive vs cooperative models, design goals, classic algorithms such as FCFS, SJF, RR, MLFQ, and the evolution of Linux schedulers from O(n) and O(1) to the modern CFS, complete with code excerpts and practical examples.

CFSFCFSLinux kernel
0 likes · 31 min read
Mastering Linux Process Scheduling: From FCFS to CFS Explained
Liangxu Linux
Liangxu Linux
Jul 6, 2021 · Fundamentals

How Linux Implements CPU Affinity: From sched_setaffinity to Task Migration

This article explains why binding a process to a specific CPU improves cache performance, shows how to set CPU affinity on Linux using the sched_setaffinity system call, and walks through the kernel's internal implementation—including run‑queue structures, migrate_task, and __migrate_task—illustrated with code and diagrams.

CPU affinityLinuxkernel migration
0 likes · 9 min read
How Linux Implements CPU Affinity: From sched_setaffinity to Task Migration
Liangxu Linux
Liangxu Linux
Mar 28, 2021 · Fundamentals

How Linux Schedules Processes and Threads: From Tasks to CFS and Real‑Time

This article explains Linux's scheduling subsystem in depth, covering process definitions, memory layout, state machines, context switches, priority and timeslice handling, the modular scheduler framework, various scheduler classes such as CFS, real‑time and deadline, group scheduling, signal processing, and the differences between kernel and user threads, providing a comprehensive guide for developers and system engineers.

CFSLinuxReal-Time
0 likes · 35 min read
How Linux Schedules Processes and Threads: From Tasks to CFS and Real‑Time
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 20, 2020 · Mobile Development

How to Use ftrace Event Tracing to Debug Android Process Scheduling

This article explains the fundamentals of Linux ftrace, details the event‑tracing mechanism and tracepoint macros, shows how to enable and filter events on ARM64 Android devices, and demonstrates a practical workflow for capturing low‑probability scheduling bugs in camera‑related processes.

AndroidDebuggingKernel
0 likes · 11 min read
How to Use ftrace Event Tracing to Debug Android Process Scheduling
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 15, 2020 · Fundamentals

Process and Thread Scheduling: Algorithms, Strategies, and Goals

This article provides a comprehensive overview of process and thread scheduling in operating systems, explaining the role of the scheduler, different scheduling algorithms such as FCFS, SJF, round‑robin, priority, multilevel‑queue and lottery, their classification for batch, interactive and real‑time environments, and the key performance goals like fairness, throughput and response time.

CPUOperating SystemReal-Time
0 likes · 31 min read
Process and Thread Scheduling: Algorithms, Strategies, and Goals
Efficient Ops
Efficient Ops
Jul 11, 2019 · Fundamentals

Why Is My CPU Idle Yet Load Is High? Uncover Linux Load & I/O Bottlenecks

High system load can occur even when CPU usage is low, typically due to many processes waiting for disk I/O; this article explains load concepts, process states, scheduling, and common scenarios such as excessive I/O requests, unindexed MySQL queries, and faulty external storage that cause such bottlenecks.

IO BottleneckLoad Averageprocess scheduling
0 likes · 12 min read
Why Is My CPU Idle Yet Load Is High? Uncover Linux Load & I/O Bottlenecks
MaGe Linux Operations
MaGe Linux Operations
Oct 14, 2018 · Fundamentals

Understanding Linux: Kernel, Memory, Processes, and File Systems Explained

This article provides a comprehensive overview of Linux fundamentals, covering the kernel architecture, virtual memory management, process scheduling and inter‑process communication, the hierarchical file system and VFS layer, device drivers, networking, shell variants, partitioning, mounting, and essential command‑line tools.

KernelMountfile system
0 likes · 33 min read
Understanding Linux: Kernel, Memory, Processes, and File Systems Explained
iQIYI Technical Product Team
iQIYI Technical Product Team
Jul 20, 2018 · Mobile Development

Android Process and Thread Scheduling: OOM Adjustment, Priority Levels, and Scheduling Groups

The article explains Android’s process lifecycle and how component states translate into OOM adjustments, LowMemoryKiller levels, scheduling groups, and Linux thread priorities, detailing the mapping of importance levels to oom_score_adj, schedGroup, procState, and cgroup policies, with code examples and a bug case.

AndroidLowMemoryKillerOOM Adjustment
0 likes · 23 min read
Android Process and Thread Scheduling: OOM Adjustment, Priority Levels, and Scheduling Groups
iQIYI Technical Product Team
iQIYI Technical Product Team
Jul 20, 2018 · Fundamentals

Understanding Linux Process Scheduling and Android Thread Management

The article explains why an Android app’s main thread can be blocked by detailing Linux process versus thread concepts, the Completely Fair Scheduler’s priority and vruntime calculations, real‑time and nice priorities, and how Android uses cgroups and SchedPolicy enums to allocate CPU shares among foreground, background, and system threads.

AndroidLinuxThread Management
0 likes · 20 min read
Understanding Linux Process Scheduling and Android Thread Management
ITPUB
ITPUB
Jul 14, 2017 · Operations

Why Linux Processes Sleep Wrongly and How to Prevent Invalid Wakeups

This article explains the Linux kernel's process sleep and wake‑up mechanisms, distinguishes interruptible and uninterruptible states, demonstrates how race conditions cause invalid wakeups, and provides concrete code patterns and kernel examples to avoid such bugs.

Operating Systemsinvalid wakeupprocess scheduling
0 likes · 11 min read
Why Linux Processes Sleep Wrongly and How to Prevent Invalid Wakeups