Question on fork system call | Operating System EP- 09
How many processes are created by the program?
int main(){
int i;
for(i=0;i<4;i++)
fork();
return 0;
}
Answer:
The formula for this fork() related problem is
Total number of process created = Child processes + Parent process = (2^n) -1) + 1
whe...
kuldipmochi.hashnode.dev3 min read