User-level threads are managed by a library without kernel knowledge: fast to create and switch, but if one blocks in a system call the whole process blocks, and they cannot use several cores.
Kernel-level threads are managed by the OS: they can run in parallel on several cores and block independently, at higher creation and switching cost.
Models: many-to-one (many user threads on one kernel thread), one-to-one (each user thread has a kernel thread, as in Linux and Windows), and many-to-many (multiplexed, as in some runtimes and green-thread systems such as Go's goroutines).
Loading…