Here I need to run many sub-tasks in 2 steps:
run multiple programs at the same time. These programs are some external executable programs.
Wait for all programs in step 1 to end before running the next function
I known the multipleprocessing will help. But how to implement these two steps?
How to hang up the main thread? How to check the sub-programs status in real time?
Thanks.
On phase 2 there is only process_3 with different parameters. Using the args argument of the threading.Thread object you can pass arguments to you job's function.