Operating Systems Lab Manual / OS Orphan Process C Program

Program Name: Write a C program Orphan process in operating system.
Theory
A process whose parent process has crashes / finished /Completed execution / terminated and 
do not exists in the process table is called as Orphan process.
i.e

First Terminated Last Terminated
Zombie Process Child process Parent Process
Orphan Process Parent Process Child process
Program Code


Input:

Output:
Parent process-ID : 4483

Parent -ID: 4483 	 Child process-ID: 4484 
Parent -ID: 1 	 Child process-ID: 4484


Home     Back