question archive The parent process has pid 501 and the child process has pid=502
Subject:Electrical EngineeringPrice: Bought3
1) FLAGS = WUNTRACED | WCONTINUED
2) FLAGS = WUNTRACED | WCONTINUED | WNOHANG,
3) FLAGS = WNOHANG
We explore two distinct cases of CONDITIONALS on the do-while loop:
C1) ((!WIFEXITED(status)) && (!WIFSIGNALED(status));
C2) ((!w)||((!WIFEXITED(status)) && (!WIFSIGNALED(status)))); //Remember (!x) means x==0
please help me with the following two questions
Q1-P1 (2 pts): Explain how the program will be executed differently for each distinct case of FLAGs.
Q1-P2 (2 pts): Explain what the conditionals achieve, how they change the behavior of the program. Which conditional(s) apply to each of the FLAGs in order for the program to be executed correctly as indicated by each Flag?