4 ms·
> The GIL allows ... only one thread to execute at a time. No, only one thread can hold the GIL at a time. Not everything requires holding the GIL. You can sti
by pekk 13y ago
> The GIL allows ... only one thread to execute at a time.
No, only one thread can hold the GIL at a time. Not everything requires holding the GIL. You can still get multithreading benefits for IO-bound work and for work done in C extensions like numpy.
- kbutler 13y agoThe GIL allows ... only one thread to execute /Python bytecode/ at a time.