I am implementing and tuning an algorithm and need to specify for the exact number of threads to use. I can observe that no more threads than specified are active at a time, however the scheduler seems to sometimes spawn new threads. Old theads then become idle.
Can anyone please elaborate why the scheduler thinks this is worthwhile?
Thanks and Best Regards!