Is the Python GIL really per interpreter?

前端 未结 3 1575
孤街浪徒
孤街浪徒 2021-02-07 22:29

I often see people talking that the GIL is per Python Interpreter (even here on stackoverflow).

But what I see in the source code it seems to be that the GIL is a global

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-07 23:20

    The GIL is indeed per-process, not per-interpreter. This is unchanged in 3.x.

提交回复
热议问题