Tagged articles
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.

Linuxinvalid wakeupprocess scheduling
0 likes · 11 min read
Understanding Linux Process Sleep, Wakeup, and How to Avoid Invalid Wakeups
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