Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.65K
1 Posted Topic
You need to use vfork(). Here's an example. #include <iostream> #include <sys/types.h> #include <unistd.h> using std::cout; using std::endl; using std::cin; int main() { int temp, avg; int num, sum=0; /*fork a child process*/ pid_t pid = vfork(); if(pid<0){ cout<<"fork failed"<<endl; return -1; } else if(pid==0){//this is the child process cout<<"Please …
The End.
Kyle_4