Monday, October 25, 2010

Orphan Process

Orphan Process

As the name suggest the orphan process means, some process has no parent. Look unlike you pthreads, Unix process are hierarchical in nature. Parent process expect he return status from the child process. Receiving this exit status the child process resources are freed.

Now if, when child exits and its parent is not there(its dead) to collect the exit status we will call it orphan process.

If No parent is there then by default process id 1 will become the parent. It will collect the status of the process.


https://docs.google.com/document/edit?id=1jl3mwh5s0W5wOH2J2bUed1NqlQ2i74a0P1KyI57P2nY&hl=en#

No comments: