Introduction - If you have any usage issues, please Google them yourself
The program first use pipe () function to create a temporary communications pipe, and then use the fork () to create two sub-processes, use the write () function is written twice to the pipeline " I' m parent process." Information, the use of two sub-processes read () function to obtain information from the pipe, and output, and then two sub-processes to the pipeline were to write " I' m child process a" and the " I' m child process b" information, from the parent process from the pipeline to read and display the . Using the write () function, you need to first use lockf () function is locked pipelines, finish information and then unlock the pipes.