Skip to content
Tagged articles

TASK_INTERRUPTIBLE

2 articles · Page 1 of 1
Linux Tech Enthusiast
Linux Tech Enthusiast
Oct 14, 2026 · Fundamentals

Linux Process Sleep and Wakeup: Preventing Lost Wakeups with Correct State Ordering

This article explains Linux process states (TASK_RUNNING, TASK_INTERRUPTIBLE, TASK_UNINTERRUPTIBLE), the schedule() and wake_up_process() mechanisms, the lost wakeup race condition that occurs when a process checks a condition before setting its sleep state, and the correct pattern used in the Linux kernel—setting the state to interruptible before condition checking and looping with schedule()—to avoid indefinite sleep.

Linux kernelProcess SchedulingTASK_INTERRUPTIBLE
0 likes · 14 min read
Linux Process Sleep and Wakeup: Preventing Lost Wakeups with Correct State Ordering
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