Operating Systems · Cluster

Processes and Threads

Execution contexts, context switches, and states.

  1. 01 Process States and the Transitions the Kernel Actually Tracks Why the kernel keeps a bitmask rather than a state enum, how runnable differs from running, and what the letter printed by ps leaves out. foundational · Aug 7, 2026
  2. 02 What fork Copies, and Why Copy-on-Write Defers Almost All of It How the kernel duplicates an address space by sharing page frames read-only, what a write does to break the sharing, and why fork without exec is expensive. foundational · Feb 19, 2024
  3. 03 What Threads Share and What They Own A thread is a process that was created with fewer sharing flags, and the list of flags is the whole difference. What each shared resource costs. foundational · Jun 20, 2024
  4. 04 The Anatomy of a Context Switch Which registers are saved, where they go, why the switch costs more than the save, and how address-space tags avoid flushing the translation cache. intermediate · Mar 3, 2025
  5. 05 Zombies, Orphans, and the Mechanics of Reaping Why an exited process keeps a task structure, what the wait call does to release it, and how subreapers keep orphaned descendants from accumulating. intermediate · Aug 3, 2023
  6. 06 Signal Delivery, Thread Masks, and Which Thread Runs the Handler How the kernel chooses a thread for a process-directed signal, why the mask is per thread while the handler is shared, and where the choice becomes deterministic. intermediate · May 12, 2026
  7. 07 Thread Stacks, Guard Pages, and Thread-Local Storage How a thread stack is reserved, why a guard page turns overflow into a fault, and how a per-thread block is addressed without a lookup. intermediate · Jul 29, 2026
  8. 08 User-Level Threads and the M:N Scheduling Problem How a runtime multiplexes many logical threads over few kernel threads, why a blocking system call breaks it, and what stack growth costs. advanced · Nov 19, 2025
  9. 09 Thread Cancellation, Cleanup Handlers, and Deferred Delivery Why cancellation is a request rather than a kill, what a cancellation point is, and how cleanup handlers unwind a thread without leaking its resources. advanced · Jun 28, 2023
  10. 10 Process Groups, Sessions, and the Controlling Terminal How job control is built from two identifiers, why a background job stops when it reads, and how a session leader loses its terminal. advanced · Sep 20, 2023