GIL in Python 3.1

后端 未结 7 688
悲&欢浪女
悲&欢浪女 2020-12-31 05:13

Does anybody knows fate of Global Interpreter Lock in Python 3.1 against C++ multithreading integration

7条回答
  •  有刺的猬
    2020-12-31 05:38

    The GIL will not affect your code which does not use python objects. In Numpy, we release the GIL for computational code (linear algebra calls, etc...), and the underlying code can use multithreading freely (in fact, those are generally 3rd party libraries which do not know anything about python)

提交回复
热议问题