

Printf output the result of only one parent, the book says it is because the child call _exit so don't flush the buffer, so the child without output buffer content, but is not to the standard output when the line buffer? (section 5.4), met a newline character "\ n" won't wash buffer and then output??
Second question, why example 8-3 lining process will affect the parent process to the operation of the variables increase 1 (explanation is that the child process runs in the address space of the parent process), so why instance figure 8-1 without?
CodePudding user response:
Study of Linux process management relevant source code?CodePudding user response: