Multiprocessing Bomb

后端 未结 3 1759

I was working the following example from Doug Hellmann tutorial on multiprocessing:

import multiprocessing

def worker():
    \"\"\"worker function\"\"\"
            


        
3条回答
  •  失恋的感觉
    2020-11-27 06:16

    I don't know about multiprocessing, but I suspect that it spawns child processes that have a different __name__ global. By removing the test, you are making every child start the spawning process again.

提交回复
热议问题