- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Top Question???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 08:55 AM
тАО07-03-2001 08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:02 AM
тАО07-03-2001 09:02 AM
Re: Top Question???
Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:06 AM
тАО07-03-2001 09:06 AM
Re: Top Question???
Zombies on a normal system get cleaned up and a kill will not get ruid if them.
If you get stuck with lots of zombies then a reboot is required.
"Zombie -- Dead but won't lie down----"
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:06 AM
тАО07-03-2001 09:06 AM
Re: Top Question???
A zombie process is one that is never going to wake up. Most generally, it is waiting on its parent process to collect its termination information by doing a wait().
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:18 AM
тАО07-03-2001 09:18 AM
SolutionLook, Zambie process are those one that when they finish working ( normal or abnormal exit ) they didn't find their parents still a live( waiting ) for them.
That's mean, consider a process P0 wis doing a fork ( creates a copy of himeself ). The copy process is P1 called the child process and P0 is the parent process of P1.
If P1 finish his work ( normal or abnormal exit ) and P0 is not listening to him with a wait() function. So , P1 became a ZAMBIE process.
Alot of devellopers fall into this problem ( they are no more accepted into the system under their loginnames till these zambies are killed with a BOOT of course ) and the only way to kill them is REBOOTING the system.
Why booting, is that Zambies are considered as
1. Not live nor not Died !!! So how to kill them.
If you need any help to avoid this miss programming, I have the solution just append your request .
Hope this helps.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:20 AM
тАО07-03-2001 09:20 AM
Re: Top Question???
It is like this , when you kill a paretn process and not the children procees associated with it then that process become a zombie or defunct process . There is no way to kill it except for rebooting the system .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:25 AM
тАО07-03-2001 09:25 AM
Re: Top Question???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:28 AM
тАО07-03-2001 09:28 AM
Re: Top Question???
I am not sure MANOJ !!!
If you kill the parent process, all children are killed as well. This is sure.
The phenomena of Zambies is :
The child exit and his parent is not listening to him. That's really all !
Have a look in the following book :
Advanced Programming in the UNIX Environment.
Addison-Wesley
W. Richard Stevens.
Pages 195 and 196
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:36 AM
тАО07-03-2001 09:36 AM
Re: Top Question???
I also agree but then if child process dies with the parent process then we can never have zombies . So what you say is genreally true but in some cases it may not by when the Zombies get created.
Cheers
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 10:00 AM
тАО07-03-2001 10:00 AM
Re: Top Question???
You said , "I also agree but then if child process dies with the parent process then we can never have zombies ", :
I don't undrestand the sentence : "if child process dies with the parent" ?
The situation is :
P0 is the parent of P1.
P1 is the child of P0.
Normal programming is :
1. The parent P0 should execute a wait() function before a child process terminates normally or abnormally.
2. If Child process is not sure that his parent is waiting for him , he will execute the function getppid() function and executes an exit() as soon the function getppid() returns 1 ( that means that the unix init process (pid 1) is the actual parent).
unix init process ( pid one ) inheriets all orphan processes and immediately executes a wait() function as soon as a child process exits ( normal or abnormal exit ).
It's really the Client/Server model from a process point of vue and I implement this solution in 1995.
Of course, after two systems boots !!!
The manner by which the Unix model avoid that is :
P0 forks twice ,
P0 fork and gives P1
P1 fork and gives P2
1.The first instruction of P2 is to loop till getppid() returns 1; getppid means GetParentProcessIdentification. ( init process )
2. The first instruction of P1 is exit() function.
3. P2 became ORPHAN.
4. init process become the actual parent of P2.
5. The function getppid() returns 1 now.
6. The P2 process executes its task.
7. P2 terminates normally or abnormally.
8. init process executes an immediate wait() function.
9. P2 died without being ZAMBIE.
If you follow this protocol, your application will never have zambies processes.
Hope this explain the issue.
Wainting for any discussion.
Magdi