Question: 2 . Write the pseudocode. ( 1 5 points ) The parent creates 1 0 child processes through fork. The parent sends a unique code
Write the pseudocode. points
The parent creates child processes through fork.
The parent sends a unique code to each child through pipe. The codes are stored in an array int codes 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 clearly define the file descriptors, clearly define the first parameter and the second parameter in readwriteHint: 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
