in reply to How the parent process knows that all its child process has finished execution?
And perhaps Parallel::ForkManager can ease your task.