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: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/u6khmz3r
My Python Courses
=================
Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...
Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...
Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...
Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...
Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...
On this page of the site you can watch the video online Python Threading Examples - Issues and Caveats with a duration of hours minute second in good quality, which was uploaded by the user MathByte Academy 10 February 2023, share the link with friends and acquaintances, this video has already been watched 4,114 times on youtube and it was liked by 178 viewers. Enjoy your viewing!