GIL in Python 3.1

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

    If the GIL is getting in the way, just use the multiprocessing module. It spawns new processes but uses the threading model and (most of the) api. In other words, you can do process-based parallelism in a thread-like way.

提交回复
热议问题