分佈式進程

分佈式進程可以有multiprocessing模塊的managers子模塊支持,可以寫一個服務進程作爲調度者,將任務分佈到其他多個進程中,依靠網絡通信進行管理 taskManager.py import random,time,queue from multiprocessing.managers import BaseManager # 第一步:建立task_queue和resul_queue
相關文章
相關標籤/搜索