Tagged articles

invalid wakeup

4 articles · Page 1 of 1
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.

LinuxProcess Schedulinginvalid wakeup
0 likes · 11 min read
Understanding Linux Process Sleep, Wakeup, and How to Avoid Invalid Wakeups
Liangxu Linux
Liangxu Linux
Oct 25, 2023 · Fundamentals

Why Do Linux Processes Sleep and Wake? Understanding TASK States and Invalid Wakeups

This article explains how Linux processes transition between running and sleeping states, the difference between interruptible and uninterruptible sleep, common pitfalls such as invalid wakeups, and best‑practice kernel patterns to avoid race conditions when putting a process to sleep.

Process SchedulingTASK_INTERRUPTIBLEinvalid wakeup
0 likes · 12 min read
Why Do Linux Processes Sleep and Wake? Understanding TASK States and Invalid Wakeups
MaGe Linux Operations
MaGe Linux Operations
Feb 14, 2019 · Fundamentals

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

This article explains how Linux processes transition between running, sleeping, and waking states, describes interruptible and uninterruptible sleep, demonstrates code for putting a process to sleep and waking it, and provides strategies to prevent invalid wake‑up scenarios caused by race conditions.

LinuxProcess Schedulinginvalid wakeup
0 likes · 11 min read
Understanding 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 SystemsProcess Schedulinginvalid wakeup
0 likes · 11 min read
Why Linux Processes Sleep Wrongly and How to Prevent Invalid Wakeups