Multiprocessing Writing Over Input Parameters
I’m trying to run the executable file main.exe
which accepts a parameter and runs the function fun
in other_file.py
. The function fun
uses multiprocessing to perform some computationally intensive tasks. It seems like fun
is run multiple times when main.exe
is called, but the parameter of the function is altered after the first run. Here is a boiled down version of what I’m doing.