C++ PROGRAMMING
System Programming CSCI7645.XX - Assignment 2 Worth - 10 points Due by March 2 , 201 7 Program 1 Write a C or C++ program to create a chain of n process ( n is the input by the users) by calling fork () system call in a loop: a. If a process already has child processes then your program must break out otherwise, the program must create a new process with zero children. Hint: if n is 3 the process chain must look like figure 1.1 Figure 1.1 b. Each parent process must have two children (binary tree) . Hint: if n is 3 the tre e must look line figure 1.2 Figure 1.2 1 2 1 3 3 2 4 5