linux ps命令的含义,求助linux下ps命令显示含义.

求助linux下ps命令显示含义.

來源:互聯網  2010-03-01 00:28:47  評論

分類: 電腦/網絡 >> 操作系統/系統故障

問題描述:

linux下ps命令后的status项

显示Rs代表什么含义,

R表示run

s代表sleep

那么R与s合起来是什么?

以及大写S与小写s有什么区别.

经常看到Ss的状态。

參考答案:

刚刚装了RHEL5β2版本

发现这个版本的ps和top里面是有Ss的

man了一下 ps和top

解释如下

PROCESS STATE CODES

Here are the different values that the s, stat and state output specifiers

(header "STAT" or "S") will display to describe the state of a process.

D Uninterruptible sleep (usually IO)

R Running or runnable (on run queue)

S Interruptible sleep (waiting for an event to complete)

T Stopped, either by a job control signal or because it is being traced.

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.

For BSD formats and when the stat keyword is used, additional characters may

be displayed:

< 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

[b]分类:[/b] 电脑/网络 >> 操作系统/系统故障[br][b]问题描述:[/b][br]linux下ps命令后的status项

显示Rs代表什么含义,

R表示run

s代表sleep

那么R与s合起来是什么?

以及大写S与小写s有什么区别.

经常看到Ss的状态。[br][b]参考答案:[/b][br]刚刚装了RHEL5β2版本

发现这个版本的ps和top里面是有Ss的

man了一下 ps和top

解释如下

PROCESS STATE CODES

Here are the different values that the s, stat and state output specifiers

(header "STAT" or "S") will display to describe the state of a process.

D Uninterruptible sleep (usually IO)

R Running or runnable (on run queue)

S Interruptible sleep (waiting for an event to complete)

T Stopped, either by a job control signal or because it is being traced.

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.

For BSD formats and when the stat keyword is used, additional characters may

be displayed:

< 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值