in reply to Efficiency of threads::shared versus Thread::Pool
Just something to try to free up cores, maybe detach your threads, instead of having them all wait for a join. When a detached thread reaches the end of it's code block, it should destroy itself, and I would think, free up your core.
The one big drawback to detaching is once a thread is detached, it may not be joined, and any return data that it might have produced (if it was done and waiting for a join) is lost.
|
|---|