Python multiprocessing provides a manager to coordinate shared information between all its users. A manager object controls a server process that holds Python objects and allows other processes to manipulate them.
A manager has the following properties:
Let's see an example of how to share a state between processes:
taskWorkers, and every worker updates an index.
import multiprocessing def worker(dictionary, key, item): dictionary[key] ...