writable shared array

Questions, issues regarding dispy / pycos

Moderator: admin

Post Reply
green
Posts: 1
Joined: Fri Apr 01, 2022 3:03 pm

writable shared array

Post 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?
Giri
Site Admin
Posts: 58
Joined: Sun Dec 27, 2020 5:35 pm

Re: writable shared array

Post 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.
Post Reply