//
archives

pid

This category contains 1 post

C program to fork a new process

Here is a C program to create suboprocess from the current process using fork() system call in Unix. It also identifies and checks both the parent and child process using the process ids… #include #include#include#include#include#include int main (){  int flag,flag2;  int pid,ppid;  printf(“\nHello Worldn”);  flag = fork();  printf(“\nflag :%d”,flag);  if(flag > 0)  {          … Continue reading

Categories