Quote Originally Posted by Kofan View Post
The number of threads equal to the number of processor-cores. By setting a high priority threads - all cores busy my application and CPU load at 100%. If the thread priorities are normal CPU load only 50-60% because in fact some kernel idle, and the program runs very slowly.
This doesnít make much sense.
You are saying that your threads (with normal priorities) are NOT utilizing CPU at 100%? What are they waiting for if no one else is using that CPU?
It sounds like you donít have enough threads running simultaneously.
For example, if I create a busy thread doing something like
and if some processor core is available, it will use 100% of that core whatever itís priority is Ė right?