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
I believe the wait system call will accomplish what you are looking for.