Page 1 of 1

writable shared array

Posted: Fri Apr 01, 2022 3:06 pm
by green
i'm trying use dispy to implement producer consumer problem
what i'm trying to find is "shared array between processes and it needed to be writable by any proccess"
could someone can show me that?

Re: writable shared array

Posted: Sat Apr 02, 2022 3:49 pm
by Giri
See 'node_shvars.py' . The idea is to use 'setup' function to load, prepare "global" data (that resides in memory) once and then use jobs (computations) to manipulate that data.

There is also shared memory module that you can look into.