3 ms·
> the popular servers for Python, PHP and other languages that use a global lock or assume single-threaded single-process execution This is not true for python
by est 6y ago
> the popular servers for Python, PHP and other languages that use a global lock or assume single-threaded single-process execution
This is not true for python. The article you linked mentions Gunicorn, uWSGI and CherryPy, they are threaded and can handle multiple requests per process.
Even if Python does have this GIL thing, it does not lock network operations for a tcp/udp based database protocol (some C based modules do tend to lock the GIL)
- sudhirj 6y agoWill edit that, yeah. I was am struggling to explain the GIL without having to talk about the GIL, because if open that can of worms it becomes a much longer article and goes off track. All of the GL and event loop based stacks go multi threaded a the lower library levels, really. Will think about how to explain that. And will move Python off that general category.