help
3. Waiting for a Process We can make a parent process waiting for its child to finish before continuing by using wait The status information is written to stat loc. Try the following program: //test wait.cpp #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; int main) pid t pid; char messagei int ni int exit code; //process id cout <c “fork program pid fork) switch ( pid
OR
OR