July 2018
Intermediate to advanced
462 pages
12h 2m
English
Threads are used for running several programs concurrently in a single process, so they help in implementing multitasking. Threads, once created, execute simultaneously and independently of each other. Threads are basically small processes that are created for executing certain tasks independently. Threads can be pre-empted, that is, interrupted or stopped temporarily by setting them in sleep mode and then resuming execution.
To work with threads in Python, we will be making use of its threading module. The threading module provides several methods that provide information on currently active threads. A few of the methods provided by the threading module are as follows:
Read now
Unlock full access