Книга: Learning Concurrency in Python
Назад: What is a thread?
Дальше: What is multithreading?

Types of threads

Within a typical operating system, we, typically, have two distinct types of threads:

  • User-level threads: Threads that we can actively create, run, and kill for all of our various tasks
  • Kernel-level threads: Very low-level threads acting on behalf of the operating system

Python works at the user-level, and thus, everything we cover in this book will be, primarily, focused on these user-level threads.

Назад: What is a thread?
Дальше: What is multithreading?