I had a problem creating a parallel program using multiprocessing. AFAIK, when I start a new process using this module (multiprocessing), I have to do "os.wait ()" or "childProcess.join ()" to get its exit status. But placement over functions in my program can happen when the main process stops, if something happens to the child process (and the child process freezes).
The problem is that if I do not, I will get child processes that will be zombies (and will be listed as "python <defunct>" in the top listing).
Is there a way to avoid waiting for child processes to complete and to avoid creating zombie processes and / or not bother the main process with so much about its child processes?
source
share