How efficient is threading in Python?

后端 未结 6 2080
故里飘歌
故里飘歌 2020-12-16 00:44

I heard threading is not very efficient in Python (compared to other languages).

Is this true? If so, how can a Python programmer overcome this?

6条回答
  •  庸人自扰
    2020-12-16 00:59

    The threading is efficient in CPython, but threads can not run concurrently on different processors/cores. This is probably what was meant. It only affects you if you need to do shared memory concurrency.

    Other Python implementations does not have this problem.

提交回复
热议问题