3 ms·
asyncio is still single-threaded due to the GIL.
by fastball 4y ago
asyncio is still single-threaded due to the GIL.
- siekmanj 4y agoTrue, but it's not trying to be multi-threaded, just concurrent.
- ikinsey 4y agoWhile not ideal, this can be mitigated with multiprocessing. Python asyncio exposes interfaces for interacting with multiple processes [1]. [1] https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor https://docs.python.org/3/library/asyncio-eventloop.html#asy...