Question: Process creation. (a) Write a C program that creates exactly 10 child processes. The ith child process (i going from 1 to 10) prints the

Process creation.

(a) Write a C program that creates exactly 10 child processes. The ith child process (i going from 1 to 10) prints the message "I am child number i" and terminates. The parent waits for all 10 child processes to terminate and then it terminates.

Make sure that the parent creates the child processes so that the child processes can execute at the same time.

(b) List the techniques used in Unix to keep the process creation an extremely efficient (low overhead) operation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!