GIL in Python 3.1

后端 未结 7 687
悲&欢浪女
悲&欢浪女 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:51

    The GIL is a good thing.

    Just make your C++ application release the GIL while it is doing its multithreaded work. Python code will continue to run in the other threads, unspoiled. Only acquire the GIL when you have to touch python objects.

    0 讨论(0)
提交回复
热议问题