2017-12-26 1 views
10

좀비 프로세스와 존재하지 않는 프로세스간에 차이점이 있습니까? 나는 위키 피 디아 (Wikipedia) 기사에서이 둘이 동일하다는 점을 발견했다. 이 같은 프로세스에 대한 2 개 개의 다른 관점을 가지고 필요한 이유이 경우 : Linux의좀비 대 실패 프로세스?

https://en.wikipedia.org/wiki/Zombie_process

+0

두 가지 용어 만 사용하면 나머지 컴퓨터 사업과 비교해도 꽤 좋은 결과를 얻게됩니다. 데이터베이스의 모든 항목에는 5 개 이상의 이름이 있으며 종종 서로 다른 부분에 대해 동일한 단어를 다시 사용합니다. https://askubuntu.com/questions/201303/what-is-a-defunct-process-and-why-doesnt-it-get-killed – chicks

답변

7

"소멸"와 "좀비"프로세스는 동일합니다. man ps에서

는 :

프로세스는 <defunct> 죽은 프로세스가 자신의 부모가 적절하게 파괴되지 않았기 때문에 남아 ("좀비"소위)입니다 표시했다. 이러한 프로세스는 부모 프로세스가 종료되면 init (8)에 의해 파괴됩니다.

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 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 
0

모두 Zombiedefunct은 동일합니다. ZOMBIEstate of the process 중 하나이며 defunct 상태가 없으면 커널 소스 코드에서 볼 수 있습니다. 이 종료되었지만 아직을 정리하지 않은 경우

enum proc_state { 
    UNUSED, /*** processes in initial state **/ 
    EMBRYO, 
    SLEEPING, 
    RUNNABLE, 
    RUNNING, 
    ZOMBIE /** processes in final state **/ 
}; 

좀비 상태를 의미한다.

설명서 페이지를 열고 proc(1)을보고 다음을 참조하십시오. /proc/[pid]/stat 프로세스에 대한 상태 정보. 이것은 ps(1)에 의해 사용됩니다.

관련 문제