Scheduling
Threads are mapped from user space to kernel space by the pthreads library.
Most operating systems utilize kernel threads (also known as lightweight processes).
User threads are mapped onto kernel threads in one of three ways:
- Using a one-to-one mapping.
- Using a many-to-one mapping.
- Using a many-to-many mapping.