3 ms·
I’ve used gevent, but I don’t remember this behavior. How does it prevent the GIL from being released when running Python code?
by slashdev 3y ago
I’ve used gevent, but I don’t remember this behavior. How does it prevent the GIL from being released when running Python code?
- btown 3y agoAh - it's more that you wouldn't typically need to run multiple threads in the same process to handle concurrent requests. For instance, gunicorn used with gevent workers will typically fork processes to ensure all cores are used, but wouldn't require multiple threads per process - gevent would handle concurrency on a single OS thread within each process.
- slashdev 3y agoAh, got it. That makes sense. Very reasonable tradeoff for an application server, which is embarrassingly parallel and holds little state.