call
selected: ๐Ÿ‘ฉโ€๐Ÿณ Cook-1 threads alive: 0 ยท on a core: 0
๐Ÿง‘โ€๐ŸณNEWhired
โ€บ
๐ŸงRUNNABLEon shift, queued
โ€บ
๐ŸณRUNNINGat the stove
โ€บ
โธBLOCKED ยท WAITINGstuck at the oven
โ€บ
๐ŸTERMINATEDshift over
๐Ÿ‘ฉโ€๐ŸณCook-1
NEW
๐Ÿง‘โ€๐ŸณCook-2
NEW
๐Ÿ”ฅ core ร—1
โ€” idle โ€”
ready queue
โ€” empty โ€”
Two cooks, one stove
Pick a cook, then hit โ–ถ start() to put them on shift.
โ–ธ RUNNABLE means ready, not running โ€” only one thread per core, and the scheduler picks who.