Python Threading Tutorial: Basic to Advanced (Multithreading, Pool Executors, Daemon, Lock, Events)
π Get FREE Robotics & AI Resources (Guide, Textbooks, Courses, Resume Template, Code & Discounts) β Sign up via the pop-up at https://kevinwoodrobotics.com/ π Real-World Robotics Project Course Overview and Waitlist: https://forms.gle/xu4rfk7GWHCaZGBEA π¦Ύ Learn Robotics and AI: https://kevinwoodrobotics.com/product/all-courses-bundle-deal/ π€ Consulting and Mentorship: https://kevinwoodrobotics.com/product-category/consulting/ ποΈ Learn OpenCV: https://kevinwoodrobotics.com/product/opencv-python-tutorials-full-playlist/ π€ Learn ROS: https://kevinwoodrobotics.com/product/ros2-tutorials-full-playlist/ π§ Learn Computer Vision using AI: https://kevinwoodrobotics.com/product/computer-vision-using-ai/ π₯οΈ Learn AI and Machine Learning: https://kevinwoodrobotics.com/product/ai-and-machine-learning-bundle/ π Amazon Store (My Top Picks for Robot Projects and More!): https://www.amazon.com/shop/kevinwoodroboticsai?ref_=cm_sw_r_cp_ud_aipsfshop_Q3AMRNBSVVB00Y1XR9TN_3 β Support My Channel: https://buymeacoffee.com/kevinwoodrobotics/ Are you trying to make your code run faster? In this video, we will be taking a deep dive into python threads from basic to advanced concepts so that you can take advantage of parallelism and concurrency to speed up your program. 0:00 Introduction 0:53 What are threads? 1:18 When to use threads? (I/O vs CPU, GIL issue) 2:16 Python Thread without join() 3:10 Python Thread with join() 3:49 Python Thread with Input Arguments 4:30 Python Multithreading 5:12 Python Daemon Threads 5:51 Python Thread with Synchronization using Locks 6:38 Python Thread Queue Communication between Threads 7:58 Python Thread Pool Executor 9:21 Python Thread Events 10:12 Speed Comparison I/O Task 10:42 Speed Comparison CPU Task (Multithreading vs Multiprocessing) Thanks for watching! If you found this video helpful, please like, subscribe and share: https://www.youtube.com/@kevinwoodrobotics Sharing my referral link for when you order your Tesla. Youβll get $1,000 off the purchase of a Tesla product! https://ts.la/kevin145437 Social: Website: https://www.kevinwoodrobotics.com LinkedIn: https://www.linkedin.com/in/kevinwoodrobotics Github: https://github.com/kevinwoodrobotics Instagram: https://www.instagram.com/kevinwoodrobotics Twitter: https://twitter.com/kevinwoodrobotics
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.