Skip to main content

5 docs tagged with "threading"

View all tags

Locks, Semaphores, and Synchronization

Master Python synchronization primitives - Lock, RLock, Semaphore, Event, Condition, and Barrier - and when to use each to build correct concurrent systems.

Module 08 - Concurrency Overview

Master concurrency in Python - threading, multiprocessing, asyncio, event loops, race conditions, locks, and building production async systems.

Project: Concurrent Web Scraper

Build a production-grade concurrent web scraper using ThreadPoolExecutor and asyncio - rate limiting, retry logic, robots.txt compliance, and structured output.

The GIL Explained

What the GIL is, why it exists, how it works in CPython 3.12+, its performance impact, and the Python 3.13 free-threaded mode.

Threading in Python

Master Python threading - Thread creation, daemon threads, thread lifecycle, sharing state, the GIL's real impact, and when threading actually helps performance.