Question: You execute the following program. Assume all forks succeed in executing. How many hello will be output? #include #include int main(void) { printf(hello );
You execute the following program. Assume all forks succeed in executing. How many hello will be output? #include #include int main(void) { printf("hello "); fork(); fork(); fork(); fork(); return(0); }
Step by Step Solution
There are 3 Steps involved in it
Lets analyze the program step by step 1 Initially there is one process lets call it process 1 execut... View full answer
Get step-by-step solutions from verified subject matter experts
