Last Updated: May 22, 2026
Python gives you two ways to spawn a thread (a callable target or a Thread subclass) and a small set of methods for starting them, waiting on them, naming them, and deciding whether they keep the program alive. This lesson covers those mechanics: how to create threads cleanly, how to launch a batch of workers, how to get values back from them, and how to use thread-local storage when each thread needs its own private data.