MENU

Fun & Interesting

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

Jack of Some 112,423 5 years ago
Video Not Working? Fix It Now

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 https://www.youtube.com/watch?v=i0Pkgtbh1xw ○ 5 Common Python Mistakes: https://www.youtube.com/watch?v=fMRzuwlqfzs ○ 5 Amazing Python Libraries: https://www.youtube.com/watch?v=eILeIEE3C8c ○ Making Python fast: https://www.youtube.com/watch?v=XW32lPcWOxg ○ Learning programming language Julia: https://www.youtube.com/watch?v=TNoShNPoEak Twitter: https://twitter.com/safijari Patreon: https://www.patreon.com/jackofsome #python #threading #multiprocessing

Comment