Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

The Basics

The goal of this assignment is to make sure you fully comprehend (and are able to realize) the creation of processes with Unix-like operating systems. To this end you will be using the fork() system call.

You are to write a (C/C++) program that will create exactly nine new processes (not including the initial program itself). This could be achieved with a simple loop, with the original processes creating nine children. The difficulty, however, is that you are not to allow any single process to create more than two child processes (so the children of the original process will need to create child processes of their own, while also abiding by the rule that they each cannot create more than two children).

The Details

You must submit the following:

• The source code for your solution.

• Documentation of your solution, which should include how it works, and how you tested your solution. Where necessary, your documentation should assume your code will be tested on the linux workstations in the design center.

Failure to provide complete documentation (either within the source file, as a detailed header comment, or as an accompanying README file), will result in a significant penalty (up to sixty percent), as would providing code that does not solve the problem, or is not readily testable on the school linux systems (the remaining forty percent of the grade). It is your responsibility to make sure that your solution can be evaluated, and that you provide adequate instructions on how to do so. You and your code will be evaluated on these criteria: correctness, clarity, neatness, documentation, and demo/presentation.