3 ms·
On the contrary. For example, each python thread you create results in the creation of a POSIX thread in the interpreter, when you're running CPython on Linux.
by FartyMcFarter 8y ago
On the contrary. For example, each python thread you create results in the creation of a POSIX thread in the interpreter, when you're running CPython on Linux.
The GIL just means that only one of those threads will be executing pure-Python code at any time. But they're still normal threads.
- FartyMcFarter 8y agoIf you want to details about the GIL and Python threads, this is a nice presentation: http://www.dabeaz.com/python/UnderstandingGIL.pdf http://www.dabeaz.com/python/UnderstandingGIL.pdf