Back to the 2022 paper

Module 2: Processes

20227m

Including the initial parent process, how many processes are created by the program shown below?

#include<stdio.h>
#include<unistd.h>
int main()
{
    /*fork a child process */
    fork();
    /* fork another child process*/
    fork();
    /* and fork another*/
    fork();
    return 0;
}

Similar questions