Process and Thread States: Idle Hands

The idle state indicates that the kernel is in the middle of initializing a process/thread run environment. The thread can't be placed on a run queue, yet but soon it will be ready to compete with other threads for scheduling consideration. The amount of time a process/thread spends in the idle state is very short, and it is rare to see this state reported by a ps command. The common process table states, p_stat, are:

SUNUSED = 0table entry unused (on the free list)
SWAIT = 1entry abandoned
SIDL = 2intermediate state during creation
SZOMB = 3intermediate state during deconstruction
SINUSE = 5entry in use

Prior to the advent of kernel threads, a process could also be in the state SRUN, waiting on an active run ...

Get HP-UX 11i Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.