helpThe call to fork in the parent return the PID (process ID) of the new child process. The new child process continues to execute just like the original, with the exception that in the child process the call to the fork returns 0. In this way, the parent and the child can determine which is which Try the following code concerning fork //test fork.cpp #include <sys/types.h> #include <unistd.h> #include <iostream> using namespace std int
OR
OR