This chapter covers the concepts of threads, concurrency, and parallelism in operating systems. It explains the advantages of using threads, different multithreading models, and how threads are implemented in operating systems like Linux. Examples in C are provided to illustrate thread creation and management using POSIX threads (Pthreads).

Table of Contents

  1. Introduction to Threads
  2. Single vs. Multithreaded Processes
  3. Advantages of Threads
  4. Concurrency vs. Parallelism
  5. Multicore Programming
  6. Amdahl’s Law
  7. User and Kernel Threads
  8. Multithreading Models
  9. Thread Libraries
  10. POSIX Threads (Pthreads) in C

Introduction to Threads

Single vs. Multithreaded Processes