Linux进程状态教程
1.2.3.3 Linux进程状态说明
define TASK\_RUNNING 0
define TASK\_INTERRUPTIBLE 1
define TASK\_UNINTERRUPTIBLE 2
define \_\_TASK\_STOPPED 4
define \_\_TASK\_TRACED 8
define EXIT\_DEAD 16
define EXIT\_ZOMBIE 32
define EXIT\_TRACE (EXIT\_ZOMBIE | EXIT\_DEAD)
define TASK\_DEAD 64
define TASK\_WAKEKILL 128
define TASK\_WAKING 256
define TASK\_PARKED 512
define TASK\_NOLOAD 1024
define TASK\_NEW 2048
define TASK\_STATE\_MAX 4096
define TASK\_STATE\_TO\_CHAR\_STR “RSDTtXZxKWPNn”
状态 定义
R Running.运行中
S Interruptible Sleep.等待调用
D Uninterruptible Sleep.等待磁盘IO,D状态
t 进程被跟踪状态
T Stoped.暂停或者跟踪状态
X Dead.即将被撤销
Z Zombie.进程已经结束,仅映像名留存
x Task\_dead
K Task\_wakekill
W task\_waiking
P Task\_parked
N Task\_NOload
n Task\_new
from: https://blog.csdn.net/lxb122435677/java/article/details/80009138