Skip to main content
added 4 characters in body
Source Link
edc65
  • 299
  • 1
  • 4

It does not affect the fork in any way.

In the first case, you end up with 8 processprocesses with nothing to write, because the output buffer was emptied already (due to the \n).

In the second case you still have 8 processprocesses, each one with a buffer containing "Hello world..." and the buffer is written at process end.

It does not affect the fork in any way.

In the first case, you end up with 8 process with nothing to write, because the output buffer was emptied already (due to the \n).

In the second case you still have 8 process, each one with a buffer containing "Hello world..." and the buffer is written at process end.

It does not affect the fork in any way.

In the first case, you end up with 8 processes with nothing to write, because the output buffer was emptied already (due to the \n).

In the second case you still have 8 processes, each one with a buffer containing "Hello world..." and the buffer is written at process end.

Source Link
edc65
  • 299
  • 1
  • 4

It does not affect the fork in any way.

In the first case, you end up with 8 process with nothing to write, because the output buffer was emptied already (due to the \n).

In the second case you still have 8 process, each one with a buffer containing "Hello world..." and the buffer is written at process end.