... continued
Continues the discussion on using a manager to share objects among processes.
We'll cover the following...
In the previous section we retrieved the server object from the manager and then let the server serve forever. There's also another way to run the server and doesn't require us to retrieve the server object first. We can invoke the start()
method on the manager. The code from the previous section is refactored below:
Using manager’s start method
from multiprocessing.managers import BaseManager
from multiprocessing import Process
import time
# port number on which the manager runs and