Threads, processes and the boundary between them

Find out which memory two threads share, which memory stays private to each, and how a process boundary changes what a write can reach. Processes and threads · Operating systems.

Two workers keep their results in memory. Which of their memory do they share, which is each worker's own, and what changes when they are separate programs?

What you will learn

  • Sort the memory of a process into what its threads share and what each thread keeps
  • Explain why a thread's own stack does not shield it from sibling threads
  • Predict what a write reaches across a process boundary and through a shared segment

Lesson outline

  1. Threads share one memory
  2. Why a thread's own stack can still be reached
  3. What a second process changes
  4. Taking turns or running together

15 minutes · 5 scenes · 0 predict checks · 9 quiz questions

The full lesson is available with Premium.