Thread pools create a certain number of threads and a queue of tasks (maybe as many threads as CPU in the system). As requests come in, we wake them up and give them work to do.
We reuse them. If there’s no work, we put them to sleep.
Thread pools create a certain number of threads and a queue of tasks (maybe as many threads as CPU in the system). As requests come in, we wake them up and give them work to do.
We reuse them. If there’s no work, we put them to sleep.