A program that waits for a network, a disk or a person spends most of its time doing nothing. Concurrency is the art of using that time: starting several tasks and letting them make progress while others wait. Python offers several tools for it, and the first is the thread. This lesson sets out the vocabulary, starts and joins threads, and shows what threads are good for, before the next lessons show how to keep them from damaging each other’s data.
More lessons in Complete Python Programming