Create child processes inside a child process with Python multiprocessing failed
问题 I observed this behavior when trying to create nested child processes in Python. Here is the parent program parent_process.py : import multiprocessing import child_process pool = multiprocessing.Pool(processes=4) for i in range(4): pool.apply_async(child_process.run, ()) pool.close() pool.join() The parent program calls the "run" function in the following child program child_process.py: import multiprocessing def run(): pool = multiprocessing.Pool(processes=4) print 'TEST!' pool.close() pool