文章目录
- 进程状态说明
- 进程状态图
进程状态说明
进程主状态:D:不可中断的睡眠状态 uninterruptible sleeping(usually IO)R:正在运行,或在队列中的 running or runnable (on run queue)S:处于休眠状态 interruptible sleep (waiting for an event to complete)T:停止状态 stopped by job control signalt:被追踪状态 stopped by debugger during the tracingZ 僵尸进程。defunct ("zombie") process, terminated but not reaped by its parentW:进入内存交换(从内核2.6开始无效)paging (not valid since the 2.6.xx kernel)X:死掉的进程 dead (should never be seen)O:进程正在处理器运行,这个状态从来没有见过B:进程正在等待更多的内存页进程子状态:<:高优先级 high-priority (not nice to other users)N:低优先级 low-priority (nice to other users)L:有些页被锁进内存 has pages locked into memory (for real-time and custom IO)s 包含子进程 is a session leader+ 位于前台的进程组 is in the foreground process groupl 多线程,克隆线程 multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
进程状态图
图一:
图二: