Home > Back-end >  APUE example in figure 8-3 question??
APUE example in figure 8-3 question??

Time:01-16

The code is shown in figure


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:

reference 1/f, zhao teacher reply:
study Linux process management relevant source code?

Zhao four teachers, I'm just a beginner, haven't the ability o
  • Related