posted 3 months ago
As long as the number of spawned threads is less than the machine's total CPU core count, overhead should be fairly low, although if they fight for I/O resources or something like that, it can be counter-productive.
Once you have more threads than cores, CPU-intensive code will suffer. I/O-intensive code is generally OK - as long as you don't stack them all up waiting on specific I/O resources.
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.