How to use C extensions in python to get around GIL

后端 未结 5 1204
走了就别回头了
走了就别回头了 2021-02-19 23:51

I want to run a cpu intensive program in Python across multiple cores and am trying to figure out how to write C extensions to do this. Are there any code samples or tutorials

5条回答
  •  孤街浪徒
    2021-02-20 00:26

    multiprocessing is easy. if thats not fast enough, your question is complicated.

提交回复
热议问题