Why does Python’s multiprocessing Pool.map cause infinite recursive spawning of child processes on Windows?
I’m writing a script for batch image processing that uses multiprocessing.Pool to run tasks in parallel. It works fine on Linux, but when I copy it to Windows, it freezes immediately. The number of python.exe processes skyrockets in Task Manager until the system runs out of memory. I didn’t wrap the script entry point with … Read more