Python's C API uses macros like `Py_BEGIN_ALLOW_THREADS` and `Py_END_ALLOW_THREADS` (which expand to `PyEval_SaveThread()` and `PyEval_RestoreThread()`) to explicitly release and reacquire the GIL, enabling other Python threads to run during long-running C operations.