4 ms·
Global Interpreter Lock (GIL) limits how effectively multiple threads can be used in Python. Hence the event loop in Rust runtime for async makes more sense he
by vednig 2y ago
Global Interpreter Lock (GIL) limits how effectively multiple threads can be used in Python.
Hence the event loop in Rust runtime for async makes more sense here.
- Kwpolska 2y agoThe GIL which is currently being removed from CPython?
- vednig 2y agoYeah, in newer versions
- mont_tag 2y agoAn async event loop doesn't have anything to do with the GIL or threads. Async is all about cooperative concurrency where a task yields in places that it would normally block. The tasks can all run in a single thread.