🔹 Thread
A thread is a single path of execution in a program. Multiple threads can run at the same time (multithreading) to perform tasks concurrently.
🔹 CPU
The CPU (Central Processing Unit) is the hardware that executes program instructions. Modern CPUs have multiple cores to run multiple threads in parallel.
🔹 Thread Scheduler
The Thread Scheduler is part of the OS or runtime that decides which thread runs, when, and for how long on the CPU.