5 ms·
The GIL gets even more complicated than that because it can also be released during CPU bound tasks that don't interact with python objects (e.g. Array operatio
by morbia 4y ago
The GIL gets even more complicated than that because it can also be released during CPU bound tasks that don't interact with python objects (e.g. Array operations in numpy)
- zzzeek 4y agoRight, if your cpu tasks are running in native extensions, then threading will actually allow parallelism, whereas asyncio will not.