1 2 3 4 5 6 7 8 9
Program Example16; { Program to demonstrate the GetPid, GetPPid function. } Uses oldlinux; begin Writeln ('Process Id = ',getpid,' Parent process Id = ',getppid); end.