What is the relationship between a CPU thread, an OS thread, and a programming language thread?
I've been wondering what the relationship between a CPU thread, an OS thread, and programming language thread is?
If a processor has n
CPU threads (typically equal to the amount of CPU cores), the OS may create m > n
threads to be scheduled for execution on the CPU threads (please, correct me if I'm wrong).
How are the programming language threads related to the OS threads? When I create a thread in a programming language, is the language then calling into the OS to create a new thread?