Storage 7 Activity

Build the ./forkmix program and run it three different ways:

  1. On the command line: ./forkmix
  2. With its output sent to a pipe: ./forkmix | less (type q to exit less)
  3. With its output sent to a file: ./forkmix > f

What is similar and different about these runs? Can you come up with a hypothesis to explain the differences? (Hint: Use strace! For instance, strace -o strace.out ./forkmix)