Reputation: 11
I have a multi-threaded programs. We use an own implementation of the thread pool. First, the load of the project is enough. compred to single thread, the program of two threads is more faster.
When we increase the number of threads, greater than 2, performance begins terrible. Obviously, we encountered a multi-threaded performance issues.
Then, we started using Intel® VTune ™ Amplifier XE 2017 Performance analysis, we put this tool integrated into the VS2013. Then a surprising thing happened when I click on the star button of Intel® VTune ™ Amplifier XE , the project begins to run, plug collects Data . We find that when we start this project through the plug-in, with the increase in the number of threads, the performance becomes higher, the running time is shortened. We can open up to 20 threads. And time is shortened 20 times
So, we want to know, can Intel® VTune ™ Amplifier XE 2017 change the operation mode of multithreaded programs ? Why does this happen. I have been troubled by this problem for a long time.
Upvotes: 0
Views: 320
Reputation: 11
Finally,I resolve this question.The answer is simple.The cause of problem is that I run the program with debugging.If I redirectly run the *.exe,the perfomance is well.There is no relationship to VTune,just beacause VTune directly start with calling *.exe.
Upvotes: 1