I'm doing a bunch of system calls that I want to run in parallel:
system(" sleep 5 && echo step 1 done &");
system(" sleep 3 && echo step 2 done &");
system(" sleep 7 && echo step 3 done &");
// block here
How can I block the program flow until all the system calls are finished?