(Solved): Given the following code:
#include
#include
#include
void main()
{
if(fork())
fork();
els ...
Given the following code:
#include
#include
#include
void main()
{
if(fork())
fork();
else
printf("Hello World\n");
}
- How many total process will be created? Why?
- How many times the “Hello World” line will be printed? Why?