Last active
June 18, 2017 07:21
-
-
Save bhavul/1e1ba48f02b9440fd15a1e7a102f0c50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
int main() | |
{ | |
if(fork()) //1st child p2 created | |
{ | |
if(fork()) //2nd child p3 created | |
{ | |
fork(); //3rd child p4 created | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment