Jun-25-2019, 08:53 PM
I have a (long!) script that I wish to speed up considerably by splitting it into 3 modules, and running them in parallel, rather than sequentially, which they currently do. Each script will need to read from several arrays which are constantly being appended, and I'm a little bit confused as to which multiprocessing method is best for that, as each script will potentially be reading the information at different times (ie, process a could be writing value 100 in the array, whilst process b is currently reading 50, and process c 30).
Would a pipe have to send every value in the array I want to pass at once, or can I append it? If it helps, the information only has to travel one way.
Would a pipe have to send every value in the array I want to pass at once, or can I append it? If it helps, the information only has to travel one way.