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

Share and modify object between between futures #100

Open
paoloelle opened this issue Dec 10, 2024 · 0 comments
Open

Share and modify object between between futures #100

paoloelle opened this issue Dec 10, 2024 · 0 comments

Comments

@paoloelle
Copy link

I would like to know if there is a way to share an object that can be modified between futures. As far as I've found in the documentation the only two methods available for shared objects are setConst() and getConst(), but setConst() allows only to define a new object that cannot be modified in future.

In my project I'm running a evolutionary algorithm using DEAP but I cannot open too many simulation in parallel due to hardware limitations. My idea is to open a pool of available simulation instances and, based on the status of the simulation (busy or not), assign the simulation instance to a specific process.

@paoloelle paoloelle changed the title Share and modify object between betweem futures Share and modify object between between futures Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant