parmap
parmap copied to clipboard
Shared Variable with parmap
Is there a way to share a global variable that is writeable from all parallel tasks?
Not that I know of... Each parallel task has its own memory space.
While it may be possible to do that with multiprocessing
, it may not be easy. Pull requests are welcome if you can make it work...
https://stackoverflow.com/questions/11215554/globals-variables-and-python-multiprocessing?lq=1