Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

wait system call

HC: hello from child
Bye
HP: hello from parent
CT: child has terminated
     (or)
HP: hello from parent
HC: hello from child
HC: Bye
CT: child has terminated    // this sentence does 
                            // not print before HC 
                            // because of wait.
Bye
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #wait #system #call
ADD COMMENT
Topic
Name
9+6 =