Question: 2 . Write the pseudocode. ( 1 5 points ) The parent creates 1 0 child processes through fork. The parent sends a unique code

2. Write the pseudocode. (15 points)
The parent creates 10 child processes through fork.
The parent sends a unique code to each child through pipe. The codes are stored in an array int codes[10]. The first element in the array is send to the first child, the second to the second child and so on.
In your pseudocode, you must (1) clearly define the file descriptors, (2) clearly define the first parameter and the second parameter in read/write.(Hint: remember to call wait in parent to synchronize parent and child).

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!