阅读背景:

Python多处理安全地写入文件

来源:互联网 

I am trying to solve a big numerical problem which involves lots of subproblems, and I'm using Python's multiprocessing module (specifically Pool.map) to split up different independent subproblems onto different cores. Each subproblem involves computing lots of sub-subproblems, and I'm trying to effectively memoize these results by storing them to a file if they have not been computed by any process yet, otherwise skip the computation and just read the results from the file. I am trying to solve a big numerical problem wh




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: