Operating systems notes

Threads

Many streams of execution inside one process, the workhorse of parallelism and responsiveness. Every section is a drawn page beside a clear written explanation, about 18 minutes in all.

  • Chapter 9 of 37
  • About 18 minutes
  • 8 sections

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

The first drawn page of Threads: Why threads exist
The chapter's first page: Why threads exist

In this chapter

  • Why threads exist
  • What a thread owns vs what it shares
  • Threads vs processes: the real trade-off
  • User-level vs kernel-level threads
  • Multithreading models
  • POSIX threads (pthreads) in practice
  • Thread pools & real-world use
  • Costs, pitfalls & why engineers care

Next chapters

Read the whole chapter

Sign in and the chapter opens with every drawn page, and all 38 operating systems chapters beside it.

DSA comes with the all labs plan and every ChaiCode batch.