Real Python
  • Start Here
  • Learn Python
    Start Learning
    Your Learning Plan →Your personalized Python learning plan Python Tutorials →In-depth articles and video courses Learning Paths →Guided study plans for accelerated learning
    Practice
    Quizzes & Exercises →Check your learning progress Browse Topics →Focus on a specific area or skill level Reference →Concise definitions for common Python terms
    Get Help
    Code Mentor →BetaPersonalized code assistance & learning tools Office Hours →Live Q&A calls with Python experts Community Chat →Learn with other Pythonistas
    Go Deeper
    Live Courses →Live, instructor-led Python courses Books →Round out your knowledge and learn offline Podcast →Hear what’s new in the world of Python
    Unlock All Content and Become a Python Expert →Get unlimited access to all Real Python has to offer
    Unlock All Content →Become a Python Expert
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Contributor
  • Search
/
  • Join
  • Sign‑In

Threading in Python (Quiz)

Lee Gaines
Threading in Python Lee Gaines 06:30
Recommended Tutorial Sample Code (.zip) Ask a Question
  • Contents
  • Discussion

Become a Member to take the quiz.

Become a Member to join the conversation.

Course Contents

Overview
96%
    Threading in Python: Overview 01:07
    What Is a Thread? 03:08
    A Single Thread 02:05
    Two Threads 05:38
    Daemon Threads 03:26
    Joining Threads 03:21
    Multiple Threads 04:04
    Exercise: Run Jobs in Background Threads 08:00
    Thread Pool 03:55
    Exercise: Speed Up Work With a Thread Pool 08:00
    Race Conditions 01:50
    Example: Bank Account Program 08:03
    Lock Objects 04:35
    Exercise: Fix a Race Condition With a Lock 08:00
    More Locks 04:30
    The Producer-Consumer Pipeline: Part 1 01:42
    The Producer-Consumer Pipeline: Part 2 11:33
    The Producer-Consumer Pipeline: Part 3 06:36
    The queue Module: Part 1 13:59
    The queue Module: Part 2 04:20
    Exercise: Drain Messages From a Queue 08:00
    Semaphore Objects 05:19
    Exercise: Cap Concurrent Workers With a Semaphore 08:00
    Threading in Python (Quiz) 06:30
    Threading in Python: Summary 01:16

© 2012–2026 Real Python ⋅ Privacy Policy