The thread pool
How many workers should a pool have? It depends on what the tasks spend their time doing.
A service window has a crew of workers, one shelf of waiting tasks, and a few cores that do the actual work. The dials set the crew, the cores, how long each task waits on a disk, and the rush. Watch tasks finished each second stop rising at the core count, unless the tasks mostly wait.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Build a thread pool
The whole idea this lab came from, told start to finish.
on the path Module 3 of 7 in How Computers Work: Many programs, one machine
The lessons, boards and videos around this lab, in reading order.