Call Fork Parent Return Pid Process Id New Child Process New Child Process Continues Execu Q37063007

help
The call to fork in the parent return the PID (process ID) of the new child process. The new child process continues to execuThe 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.