Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Variable with parmap #17

Open
Strizzi12 opened this issue Jun 9, 2018 · 1 comment
Open

Shared Variable with parmap #17

Strizzi12 opened this issue Jun 9, 2018 · 1 comment
Labels
enhancement pull-request-welcome Happy to review a PR for this feature

Comments

@Strizzi12
Copy link

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

@zeehio
Copy link
Owner

zeehio commented Jun 9, 2018

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 zeehio added the pull-request-welcome Happy to review a PR for this feature label May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pull-request-welcome Happy to review a PR for this feature
Projects
None yet
Development

No branches or pull requests

2 participants