Share object between processes in python
问题 I am looking for a dead simple example on how to share a complex object between two or more processes in python. On my main i have something like if __name__ == "__main__": FirstClass().start() SecondClass().start() etc... and each class is defined like: class FirstClass(multiprocessing.Process): def __init__(self): super(FirstClass, self).__init__() [...] I would like to have a MySharedClass with inside all the data i need (list of custom objects and so on) that i can access and modify from