Thread
A unit of execution within a process. Multiple threads work concurrently, speeding up tasks that wait for the network or disk.
Why in Automation
- Download several pages simultaneously;
- Serve several requests;
- Not block the main work on slow operations.
Nuance in Python
Due to the GIL, threads poorly accelerate pure computations but are great for network tasks. For calculations, processes are used.