Grokking Concurrency in Python
0% completed
Interpreters in One Process
A running Python program keeps all of its state in one place: its imported modules, its global variables, its built-in functions, and the GIL, which lets only one thread at a time run Python code. CPython can keep several of these sets of state inside one process, each separate from the others and each with its own GIL. Threads that belong to different sets then do not wait for each other, even on the standard build.
An Interpreter Inside a Process
When CPython starts, it builds the first set of runtime state, called the main interpreter
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%