Search code examples
pythonmultithreadinggil

Acquiring the global interpreter lock from python


Is it possible to acquire the global interpreter lock from python code? Or is that purely implemented in the C side?


Solution

  • If your code executes then you have the GIL, no need to acquire it manually.