Back to Browse

Python Threading Tutorial: Basic to Advanced (Multithreading, Pool Executors, Daemon, Lock, Events)

22.2K views
Nov 3, 2024
13:18

🎁 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 formats

Video Formats

360pmp418.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python Threading Tutorial: Basic to Advanced (Multithreading, Pool Executors, Daemon, Lock, Events) | NatokHD