KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel