首页 > 解决方案 > 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()

标签: pythonlinuxmultiprocessingredhatpathos

解决方案


推荐阅读