You are on page 1of 1

Practicle 1:

Statement: Write a program to print the process id and parent process id using getpid() and
getppid()
functions respectively.
PROGRAM :
#include<stdio.h>
Int main()
{
printf(Parent id is:%d\n process id is :%d\n,getpid(),getppid());
return 0;
}

OUTPUT:

You might also like