On Sun, 2002-06-16 at 13:50, Vamsi Krishna K-RollNo.2000-134 wrote:
> 
> hai
>    do u mean zombies are not scheduled?
>    if so why it is in the process list?
>    is there any way to remove this process (please dont ask me to reboot)

Those zombies will be there until the parent process dies. The purpose
of the zombies are for parents to collect the exit status of their dead
children.

So, to clear the zombies without exiting the parent, you must do wait()
(or equivalent) system call in your program. Only then will the zombies
be cleared from the Process table.

If you don't want to wait continuously for the children to die, hook up
the SIGCHLD signal and call the waitpid() in the callback function.

In terms of resources, zombies do not take up any resources (memory or
cpu), but they are not removed from the process table. Only when the
parent has explicitly retrieved the exit status of the child, will the
zombies go away.

If the parent dies before the child exits, then the child becomes an
orphan and it's new parent will be init. In this case, the zombies will
go away when the init process dies (reboot??).

I hope that helps.

-- 
Regards,
-naba

I used to get high on life but lately I've built up a resistance.


----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to