MODULE 14 · ADVANCED

Concurrency with Clear BoundariesPython · Module 14

Choose threads, processes, or async tasks from the workload and design bounded, cancellable operations.

4 lessons16 min readingConnect, test, and ship
Free, self-paced, and open to everyone. No account needed.
WHAT THIS MODULE COVERS

Concurrency with Clear Boundaries

Choose threads, processes, or async tasks from the workload and design bounded, cancellable operations.

BEFORE YOU START

Functions, exceptions, context managers, and iterators.

WHAT YOU’LL BE ABLE TO DO

Choose the right concurrency model (threads, processes, or async tasks) according to your workload, bound parallelism to avoid resource exhaustion, and handle worker failures.

THE LESSON SEQUENCE

Read in order, or jump to what you need.

Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.

  1. 14.01
    Threads and I/O

    Overlap waiting work while keeping state, ordering, and failure handling explicit.

    4 min
  2. 14.02
    Processes and CPU Work

    Use isolated workers for substantial CPU work and account for serialization, startup, and process lifecycle.

    4 min
  3. 14.03
    Async, Await, and Tasks

    Understand cooperative scheduling and structure concurrent async operations with explicit task ownership.

    4 min
  4. 14.04
    Cancellation and Concurrency Limits

    Make deadlines, cleanup, and backpressure part of a concurrent operation’s contract.

    4 min
MODULE SELF-CHECK

Ready to move on?

Explain your concurrency model choice for a specific task, surface worker failures appropriately, and verify cleanup when work is cancelled or fails.

Open the module self-check