python singleton into multiprocessing

前端 未结 5 709
时光取名叫无心
时光取名叫无心 2021-01-13 02:53

How can I code to share the same instance of a \"singletonic\" class among processes?

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 03:55

    The whole point of processes is to have different address spaces. If you want to share information between processes you must use some means of interprocess communication.

提交回复
热议问题