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
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