+ -
当前位置:首页 → 问答吧 → 请问下linux下的进程问题,顺便散分!

请问下linux下的进程问题,顺便散分!

时间:2011-11-07

来源:互联网

用ps axj命令查看下有 "[****]"样子的进程,是什么类型的进程啊,他的父进程ID是1,即init进程。
但是僵尸进程是"[****] defunct"。上面的那种是啥进程呀。。哎!
小弟在此多谢大家发言!

作者: rpg_kill   发布时间: 2011-11-07

ms是看daemon的,unix环境编程这本书上依稀记得看到过

作者: jcback   发布时间: 2011-11-07

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

作者: delphiwcdj   发布时间: 2011-11-08

热门下载

更多