In this video I show a couple of examples implementing some Python multithreading techniques, such as creating, starting and joining threads, daemon threads, locks, and threadsafe queues (this is not really a tutorial on threading - that would be an entire course, but more of a demo of what can go wrong and a common misconception).
My main aim in this video is to show that multithreading (in Python) does **nothing** to improve performance in CPU bound workloads, and hopefully convince you that writing multithreaded code is not something you should just do casually as it is very easy to introduce (often invisible) bugs and is not some kind of performance improving magic bullet.
#mathbyteacademy #python
Code for this Video
================
Available in GitHub blog repo: [ Ссылка ]
Direct link: [ Ссылка ]
My Python Courses
=================
- Python 3 Fundamentals (introduction to Python)
[ Ссылка ]
- Python 3 Deep Dive (Part 1 - Functional)
[ Ссылка ]
- Python 3 Deep Dive (Part 2 - Iteration, Generators)
[ Ссылка ]
- Python 3 Deep Dive (Part 3 - Hash Maps)
[ Ссылка ]
- Python 3 Deep Dive (Part 4 - OOP)
[ Ссылка ]
Ещё видео!