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

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.