C program to demonstrate use of fork and wait system call in linux


 
Output : 
dell@linuxmint ~/practicals $ gcc shubham.c
dell@linuxmint ~/practicals $ ./a.out
Enter any number….3
Child PID is 3686
Child Execution Completed…
W= 1536
Now in parent
 

Leave a Reply

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