parmap icon indicating copy to clipboard operation
parmap copied to clipboard

Shared Variable with parmap

Open Strizzi12 opened this issue 6 years ago • 1 comments

Is there a way to share a global variable that is writeable from all parallel tasks?

Strizzi12 avatar Jun 09 '18 12:06 Strizzi12

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

zeehio avatar Jun 09 '18 18:06 zeehio