Python 多处理卡住了

问题描述

我在 linux redhat 7.9 的 python 中运行多处理代码。但是在 Windows 中工作正常。 代码有时会在几个小时后卡住。

from pathos import pools,helpers
with pools._Processpool() as pool:
    all_forecast_result1 = pool.starmap(run_engine,all_forecast_params)
    pool.close()    
    pool.join()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)