Kernel-Level Thread

Introduction

Kernel 知道並且管理每個 thread

Thread Table

user-level thread 一樣維護 thread table,但是是在 kernel space

Context Switch

因為 kernel 知道每個 thread 的存在,所以在一個 thread 呼叫 blocking 的 system call 時就可以進行 context switch 去執行其他 thread

Problems

thread context switch、creation 和 destroy 都會耗費較 user-level thread 多許多的資源