1. 首页
  2. 数据库
  3. 其它
  4. Cpython解释器中的GIL全局解释器锁

Cpython解释器中的GIL全局解释器锁

上传者: 2020-12-17 06:03:15上传 PDF文件 92KB 热度 12次
1、什么是GIL全局解释器锁 GIL:Global Interpreter Lock,意思就是全局解释器锁,这个GIL并不是Python的特性,他是只在Cpython解释器里引入的一个概念,而在其他的语言编写的解释器里就没有GIL,例如:Jython,Pypy等 下面是官方给出的解释: In CPython, the global interpreter lock, or GIL, is a mutex that prevents multiple native threads from executing Python bytecodes at once. This lock is
下载地址
用户评论