Python is NOT Single Threaded (and how to bypass the GIL)

Опубликовано: 05 Октябрь 2024
на канале: Jack of Some
109,613
3.9k

I've encountered this misconception about Python a lot: Python is single threading and to use more then one core on your CPU you must use the multiprocessing module. In this video I show that this is utterly false and that you can be very CPU efficient with Python when calling out to something like a c-extension (numba in this case). I feel this is an important nuance to understand, hence this video.

MY OTHER VIDOES:
○ A.I. Learns to play Snake    • Neural Network Learns to Play Snake u...  
○ 5 Common Python Mistakes:    • 5 Things You're Doing Wrong When Prog...  
○ 5 Amazing Python Libraries:    • Five Amazing Python Libraries you sho...  
○ Making Python fast:    • Can VSCode be a reasonable Spacemacs ...  
○ Learning programming language Julia:    • How to learn Julia, a new programming...  

Twitter:   / safijari  
Patreon:   / jackofsome  

#python #threading #multiprocessing