Question 3
Consider the code given below.
int pid;pid = fork();if (pid > 0){ pid = wait();}else{ execlp("ls", "", NULL); exit(0);}While the execlp("ls", "", NULL) function is running in the child process, what is the state of the parent process?
Sleeping
Running
Terminated
Waiting