python - 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()
解决方案
推荐阅读
- python - 如何让创建语句尊重自定义 Django 字段中的“from_db_value”?
- google-cloud-platform - 使用 AutoML 对象检测接收到的 JSON 负载无效
- java - CountDownTimer 为每个循环增加时间
- .htaccess - htaccess 通过仅匹配 url 的第一部分来重写 url
- c# - 从数据库中读取一个值并将其保存到一个变量中
- python - 在python中,使用其他变量的过去创建一个新列
- r - 如何重新绑定不同列大小和不同名称的重塑数据表
- python - 关于数字列表的Python分配
- javascript - 关于减速器管理器的官方 Redux 文档不起作用
- firebase - 快照侦听器是否有限制或成本?