Question: IV. Consider the following program 1 int main() t 2 int count = 0; 3 int pid; 5 if( ! (pid = fork ( ))
IV. Consider the following program 1 int main() t 2 int count = 0; 3 int pid; 5 if( ! (pid = fork ( )) ) { while ((count 0) printf("%d", count); 12 13 h 14 if(pid) { 15 waitpid(pid, NULL, 01 16 17 18 19 h count = count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
