|
A class for holding the GIL and for accessing the Python runtime
for running Python code.
The runtime object holds the Python GIL. The Python GIL, or
Global Interpreter Lock, is a rule inside the standard Python
system that only lets one thread run Python code at a time, even if
your computer has many cores. Think of it like a single token that
a thread must hold to do its work; while one thread holds the
token, others must wait.
This makes memory management simpler and safer for Python, but
it also means that using multiple threads will not speed up heavy
number-crunching tasks. However, for tasks that involve waiting,
like reading files or fetching web pages, threads can still work
well because they give up the token while waiting.
System.Object
WebSupergoo.ABCpdf14.Python.PythonRuntime
Implements: IDisposable
|