这就是全局解释锁(GIL),有时候也叫做全局VM锁(GVL)。
The reason is the Global Interpreter Lock (GIL), sometimes referred to as Global VM Lock (GVL).
当前拥有全局解释器锁的线程(或其它什么)未知时,调用这个函数不安全。
It is not safe to call this function when it is unknown which thread (if any) currently has the global interpreter lock.
释放全局解释器锁。锁必须提前创建。这个函数在编译时禁用线程支持的情况下不可用。
Release the global interpreter lock. The lock must have been created earlier. This function is not available when thread support is disabled at compile time.
应用推荐