在中man ps
,它明确指出了进程在Linux上可能具有的不同状态。
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.
即使X
是过程状态,也永远不应该看到它。但这是正确的吗?是否有理论上的方式将其视为流程中的状态?还是完全100%不可能?
2
使用应当以及手册页中应有的事实意味着实际上有可能看到它。我不知道如何或何时。
—
terdon