Skip to content
BIASED

Processes and threads

Block 1 of 4~3 min

Why many programs

A job that runs for 10 ms and then waits 40 ms for disk keeps the CPU busy only 20% of that stretch. Early batch systems already noticed: keep several jobs in memory (multiprogramming) so the processor can switch to another when one blocks on I/O. Interactive machines add time sharing: a periodic timer interrupt forces entry to the kernel so the scheduler can run someone else, giving each user the illusion of a dedicated machine. Without the timer, a tight loop in U-mode would never yield.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • fork/COW vs threadsoptional

    For 4 tasks choose process or thread; mark address space and COW after fork.

    ~20 min · easier on a computer · The matching course topic has been read.

    Self-check in the notebook — not part of mastery or the certificate.