How to wait until all child processes called by fork() complete?

前端 未结 5 811
北恋
北恋 2020-12-08 03:28

I am forking a number of processes and I want to measure how long it takes to complete the whole task, that is when all processes forked are completed. Please advise how to

5条回答
提交回复
热议问题