Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

Threading in Python: Summary

You’ve now seen much of what Python threading has to offer and some examples of how to build threaded programs and the problems they solve. You’ve also seen a few instances of the problems that arise when you’re writing and debugging threaded programs.

If you’d like to explore other options for concurrency in Python, check out Speed Up Your Python Program With Concurrency. If you’re interested in doing a deep dive on the asyncio module, go read Async IO in Python: A Complete Walkthrough.

Whatever you do, you now have the information and confidence you need to write programs using Python threading!

Take the Quiz: Test your knowledge with our interactive “Python Threading” quiz. Upon completion you will receive a score so you can track your learning progress over time:


Interactive Quiz

Python Threading

This is a quiz that will review topics covered in our An Intro To Threading tutorial.

jeffgorzen on May 3, 2020

I wish the example code and slide show was left on the sight!

Ghani on Oct. 29, 2020

Excellent course; Thank you so much!

williamhoward50 on Feb. 24, 2022

Excellent course.

Yuri on June 8, 2022

Great Course! I think it is probably one of the best (if not the best) explanation of threading & queue topic I have seen on the internet! Thanks!

ross24 on Jan. 7, 2024

Agree with others that this is the best explanation of threading, etc on the internet. I’m not sure if other related lessons exist regarding threading but if there are, it would be nice to have a recommneded next steps suggestion.

John M on March 22, 2024

Thanks for the great tutorial, Lee. In the queue example, how can I create many consumer threads while only having one producer?

Become a Member to join the conversation.