Showing sample code might shed light on the problem.
Some section of your code is making operating system calls. A timed out spinlock is one example of this as well as making explicit calls. VTune can show you where the execution is happening outside of your program. This may aid you in locating what is being called from your program.
By the way, 100% usage is not necessarily a good indication of good programming or of everything is working fine. Your 4 cores at 150.736 s is likely running at 100% and everything is not fine.
Anyway. Hope this can help someone help : DON'T USE "C" SORT !
email@example.com:I was using the qsort routine from visual 2005 crt 8. I didn't step into details. Now, I'm using QT qsort routine. This one is working.
firstname.lastname@example.org:Sorry my fault. My answer was done too fast.
Here's the exact code that didn't scaled.
My include's order to be sure :
#define _HAS_ITERATOR_DEBUGGING 0And the problem will go away.