Python multiprocessing and Manager
问题 I am using Python's multiprocessing to create a parallel application. Processes need to share some data, for which I use a Manager . However, I have some common functions which processes need to call and which need to access the data stored by the Manager object. My question is whether I can avoid needing to pass the Manager instance to these common functions as an argument and rather use it like a global. In other words, consider the following code: import multiprocessing as mp manager = mp