3 ms·
> Look at your program's CPU usage. If the sum of your threads is <100% of one core, then there is no reason whatsoever for you to use threads. You’re doing a
by jakelazaroff 7y ago
> Look at your program's CPU usage. If the sum of your threads is <100% of one core, then there is no reason whatsoever for you to use threads.
You’re doing a core–maxing CPU–bound computation and you want your UI to remain responsive at the same time.
- trog 7y agoHow much is this still a problem in a multicore world? I guess I assume my UI is being managed by a separate process on a separate core most of the time, and any userspace stuff that is demanding CPU will just be thrown onto another core. I guess one issue is that you might end up with a single core dedicated to UI so not running at full utilisation, taking advantage of threading?