Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~113 People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for loveboy23

can anyone explain this programing codes? proc1.c #include <stdio.h> int main() { int fork_return; fork_return = fork(); printf("PID=%d, PPID=%d, fork_return=%d\n", getpid(), getppid (), fork_return); sleep(10); /* wait for 10 sec */ return 0; } proc2.c #inlcude <stdio.h> int main() { int chpid=fork(); if (chpid < 0) { printf("ERROR\n"); exit(1); } …

Member Avatar for vegaseat
-1
113