1.2.3.3 Linux进程状态说明
/* Used in tsk->state: */
define TASK_RUNNING 0
define TASK_INTERRUPTIBLE 1
define TASK_UNINTERRUPTIBLE 2
define __TASK_STOPPED 4
define __TASK_TRACED 8
/* Used in tsk->exit_state: */
define EXIT_DEAD 16
define EXIT_ZOMBIE 32
define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD)
/* Used in tsk->state again: */
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