NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle1 view

What is a process in state D waiting for? Can it wait for the network?

Practice

Asked at

AI answer

In Linux, D state is uninterruptible sleep: a process or thread is usually waiting for a kernel operation to finish, often disk I/O. Waiting for data from a TCP socket is more commonly shown as S (interruptible sleep), but waiting in a network file system or another kernel-level network path can result in D. So D does not mean waiting for a disk exclusively; a signal usually cannot interrupt this sleep until the process leaves the wait.