How to create multiple children before any child executes?
Hello ,
Iv got an assignment to complete and I'm stuck at the basic level. A part of the assigned problem is : The main process will read the file, and will create N number of child processes (Where N is taken as input) as early as possible before all the children starts its execution. Before creation of each child, the main process should read the file to store all the required data in then corresponding data structure. Child processes should not read the file for getting their information. As far as my knowledge about this , the child executes before the parent . How do I make the parent not pass the control to it's children before it finishes creating all the children? Thanks |
Quote:
|
Quote:
Your first objective should be to figure out what those instructions mean. If it really does mean something that is harder to do than is appropriate to the level of your class, you should be able to get some help here with that technical issue, after trying harder to find out what your instructor really meant. Quote:
Quote:
Quote:
Quote:
Even though posting exact text of a homework assignment is generally disapproved of here, I think it should be OK for the OP to post exact text of the assignment and highlight the bizarre part and ask opinions on "what do you think the instructor actually meant by this nonsense?". But is it practical to ask the instructor what this part of the instructions means? That approach may be more productive. |
Quote:
Quote:
|
All times are GMT -5. The time now is 09:14 AM. |