My problem is:
I have 3 procs that would like to share config loaded from the same class and a couple of queues. I would like to spawn another proc as a multiprocessing.manager to share those informations.
How can I do that? Could someone purchase a sample code avoiding use of global vars and making use of multiprocessing manager class?
Python docs wasn’t so helpfull 🙁
I found this particular section in the Python multiprocessing docs helpful. The following program:
demonstrates the main script (which is the “multiprocessing manager” in your question) creating 3 processes and sending them each a configuration (shown here as a dictionary).
Each process reads the configuration, does its processing (here, just sleep for 5 secs) then terminates. The output from running this script is: