Skip to content

Instantly share code, notes, and snippets.

@zealfire
Created April 8, 2018 06:33
Show Gist options
  • Save zealfire/80cb7f5a78d1d95458e522d525e3ec00 to your computer and use it in GitHub Desktop.
Save zealfire/80cb7f5a78d1d95458e522d525e3ec00 to your computer and use it in GitHub Desktop.
Uninterruptible sleep
An uninterruptible sleep state is a sleep state that won't handle a signal right away. It will wake only as a result of a waited-upon resource becoming available or after a time-out occurs during that wait (if specified when put to sleep). It is mostly used by device drivers waiting for disk or network IO (input/output). When the process is sleeping uninterruptibly, signals accumulated during the sleep will be noticed when the process returns from the system call or trap.
In Unix-like systems the command 'ps -l' uses code "D" for the uninterruptible sleep state of a process.[7] Such processes cannot be killed even with SIGKILL and the only non-sophisticated way to get rid of them is to reboot the system.[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment