You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
paoloelle
changed the title
Share and modify object between betweem futures
Share and modify object between between futures
Dec 10, 2024
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()
andgetConst()
, butsetConst()
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.
The text was updated successfully, but these errors were encountered: