The global interpreter lock" is per-interpreter as its name implies, not per process;"
全球口译锁“是每口译,顾名思义,不是每个进程;
The global interpreter lock is used to protect the pointer to the current thread state.
全局解释器锁用于保护当前线程状态的指针。
The reason is the Global Interpreter Lock (GIL), sometimes referred to as Global VM Lock (GVL).
这就是全局解释锁(GIL),有时候也叫做全局VM锁(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.
释放全局解释器锁。锁必须提前创建。这个函数在编译时禁用线程支持的情况下不可用。
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.
释放全局解释器锁。锁必须提前创建。这个函数在编译时禁用线程支持的情况下不可用。
应用推荐