Develop an execution driven simulator

Develop an execution driven simulator (C or Java) for a multiprocessor following these steps:

Create a process for every processor (# processors is an argument to the program).
In each process start executing a program using the exec() system call (for example a simple program that prints “hello I am processor nr ” and the processor number.).
Each process exits when done.
The parent process should check when the children are done (i.e., the processors finished execution of their programs) and then exit.

find the cost of your paper