Threads and What They Cost
Java threads: starting work that runs alongside your code, the states a thread passes through, and platform vs virtual threads.
Threads: the way a Java program does two things at the same time. For twenty years a thread was expensive enough that you counted them; virtual threads changed that arithmetic without changing the model, so the topic teaches the model and then what changed. It covers starting a thread, output that interleaves, run() against start(), thread states, platform and virtual threads, and daemon threads. It leaves out how the operating system schedules threads.
Contents
8 cardsnot started