Tagged articles
8 articles
Page 1 of 1
Deepin Linux
Deepin Linux
May 17, 2026 · Fundamentals

Why Wait Queues Matter: Mastering Linux Kernel Process Sleep and Wakeup

This article explains the Linux kernel wait‑queue mechanism, detailing its data structures, sleep states, step‑by‑step process‑sleep and wake‑up procedures, core APIs, and a practical key‑driver example that demonstrates efficient blocking I/O without wasting CPU cycles.

Linux kernelblocking I/Odriver development
0 likes · 26 min read
Why Wait Queues Matter: Mastering Linux Kernel Process Sleep and Wakeup
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
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
Liangxu Linux
Liangxu Linux
Jun 5, 2023 · Fundamentals

How Linux Schedules Processes: Sleep, Wakeup, and Avoiding Invalid Wakeups

This article explains Linux process states, how the scheduler puts a running task to sleep with TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE, how wake_up_process() restores TASK_RUNNING, why invalid wakeups occur due to race conditions, and the kernel techniques used to prevent them.

KernelLinuxprocess-scheduling
0 likes · 11 min read
How Linux Schedules Processes: Sleep, Wakeup, and Avoiding 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
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