Introduction - If you have any usage issues, please Google them yourself
1, the understanding of the system call fork (), execl (), exit (), getpid (), and waitpid () function and process 2, write a procedure to achieve the following functions : a) The use of system calls fork () to create two child process b) the parent process repeated string "parent : ", and the use of function getpid () show their ID process. C) two separate child process repeated string "child :" and the use of function getpid () show their ID 3 process, to prepare a process to achieve the following functions : a) The use of system calls fork () to create a child process b) children show their ID process, and the string " : The child is calling an exec. \ n " Then execl () call system commands ps shows currently running process, thereby replacing the execution
Packet : 73462707fork_textcanjian.rar filelist
fork_test.c
fork_test.exe
forktest.c
forktest.exe