Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# Miscellaneous

## Global Interpreter Lock (GIL)

The Python C API dictates that the Global Interpreter Lock (GIL) must always be held by the current thread to safely access Python objects. As a result, when SystemVerilog calls Python via PyStim the GIL must be held, and PyStim will never implicitly release the GIL.