Python multiprocessing performance

后端 未结 3 949
旧巷少年郎
旧巷少年郎 2021-02-20 04:16

This should be my third and final question regarding my attempts to increase performance on some statistical analysis that I am doing with python. I have 2 versions of my code (

3条回答
  •  伪装坚强ぢ
    2021-02-20 05:16

    Your Pastebins is empty.

    The problem is that multiprocessing uses fork if its available (instead of spawning a new python proccess). Forked process share same env(file descriptors for example). May be it has some locks among them.

    Here is some frustration about that: Multiprocessing or os.fork, os.exec?

提交回复
热议问题