The Gateway to Computer Science Excellence
+1 vote
14 views
Including the initial parent process, how many processes are created by the following program.

#include <stdio.h>
#include <unistd.h>
int main()
{
fork();             
fork();             
fork();
return 0;
}
in Operating System by Boss (41.9k points)
edited by | 14 views

1 Answer

+1 vote

total number of child process created= 7.

by Boss (35.6k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,497 answers
195,495 comments
100,827 users