独立可执行文件中的GIL

时间:2018-11-10 06:58:14

标签: python pyinstaller gil

我不确定如何实现GIL,但是从理论上讲,如果我要使用pyinstaller将python脚本编译为exe,是否仍会实现GIL?有什么办法可以绕过?

1 个答案:

答案 0 :(得分:1)

如果您使用的是CPython(“标准Python”),则

GIL将在那里。 Pyinstaller不会编译,而是在可执行文件中使用bundles the Python script, its dependencies, and the interpreter。因此,适用绕过GIL的标准方法:

相关问题