ps的man手册中关于STAT状态字符的解释

PS 命令STAT状态

常用的ps命令有:

ps -ef

或者

ps aux

这些命令显示的进程列表头中有一项STAT,其中各个状态字符的解释

           D    uninterruptible sleep (usually IO)]
           R    running or runnable (on run queue)
           S    interruptible sleep (waiting for an event to complete)
           T    stopped by job control signal
           t    stopped by debugger during the tracing
           W    paging (not valid since the 2.6.xx kernel)
           X    dead (should never be seen)
           Z    defunct ("zombie") process, terminated but not reaped by its parent

还可能有额外的字符对进程的状态做补充说明:

           <    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
           l    is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
           +    is in the foreground process group

比如,常见的状态有:
Ss:可中断的休眠(待唤醒);会话
Ssl:可中断的休眠(待唤醒);会话;是一个多线程
Ssl+:可中断的休眠(待唤醒);会话;是一个多线程;属于一个前台的进程组
S<:可中断的休眠(待唤醒);高优先级

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值