Skip to content

Instantly share code, notes, and snippets.

@bhavul bhavul/fork1.cpp
Last active Jun 18, 2017

What would you like to do?
#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
You can’t perform that action at this time.