go top

Global interpreter lock

  • 全局解释器锁

网络释义英英释义

  全局解释器锁

线程不能利用多CPU问题,这是Python被人诟病最多的一个缺点,GIL即全局解释器锁(Global Interpreter Lock),是计算机程序设计语言解释器用于同步线程的工具,使得任何时刻仅有一个线程在执行,Python的线程是操作系统的原生线程。

基于158个网页-相关网页

短语

The Global Interpreter Lock 获取全局解释器锁

Global Interpreter Lock

  • abstract: A Global Interpreter Lock (GIL) is a mutual exclusion lock held by a programming language interpreter thread to avoid sharing code that is not thread-safe with other threads. In languages with a GIL, there is always one GIL for each interpreter process.

以上来源于: WordNet

双语例句

  • The global interpreter lock is used to protect the pointer to the current thread state.

    全局解释器锁用于保护当前线程状态的指针。

    youdao

  • The reason is the Global Interpreter Lock (GIL), sometimes referred to as Global VM Lock (GVL).

    这就是全局解释锁(GIL),有时候也叫做全局VM锁(GVL)。

    youdao

  • It is not safe to call this function when it is unknown which thread (if any) currently has the global interpreter lock.

    当前拥有全局解释器锁的线程(或其它什么)未知时,调用这个函数不安全。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定