Solution to Lab 12 ------------------ 1. It will be helpful to draw a tree diagram to represent the parent and child processes upon forking. The correct answer is 8. As an aid to understanding how this is the case, try changing the loop index down to 2 or 1, and notice the difference. 2. By counting the number of lines displayed on the terminal, you will see that you will get 14 lines. If you got the first question right, it is easy to see why this is the case. 3. When you pipe the output to wc, you will get 24 lines! This is due to the non-flushing of the buffers when a parent forks a process (covered in class this week).