Tagged articles

sleep state

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

LinuxProcess Schedulingkernel
0 likes · 11 min read
Mastering Linux Process Sleep and Wake‑Up: Avoiding Invalid Wake‑Ups
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