-
January 7th, 2012, 06:40 AM
#1
The strange performance of Visual C++ multi thread application
I compiled a quite large C++ project in Visual Studio 2010 Ultimate using the Intel Composer compiler 2011, DirectX SDK (June 2010) and Intel TBB. After starting (either the Release or Debug assembly) directly from within Visual studio in debug mode (by pressing F5) the project runs much faster than when it started the outside of Visual studio (starting the .exe file directly).
Application type - event simulation of molecular dynamics. In general, even visually, i can see how the motion of particles (about 100 000 molecules) is much slower when you run the exe-file directly. Priority class for the application process is HIGH_PRIORITY_CLASS, work-threads of applications (responsible for the processing of events) have priority THREAD_PRIORITY_HIGHEST. As a result, when the application runs from the visual-studio (via F5) work threads are faster than running via Ctrl+F5 or exe-file directly
User - ADMINISTRATOR
What could cause this and how can it be fixed?
C++ compiler is configured for X86:
Platform: Win32
Target machine: MachineX86 (/MACHINE:X86)
My PC:
Processor - Mobile DualCore AMD Turion X2 Ultra ZM-80, 2100 MHz (5.25 x 400)
RAM - DDR2 4GB
Video - ATI Mobility Radeon HD 3650 (M86) 512MB
OS - Windows 7 Ultimate 64-bit
P.S. I'm sorry for my English - I'm from Russia
-
January 8th, 2012, 05:15 AM
#2
Re: The strange performance of Visual C++ multi thread application
Please don't cross-post. Only create a single thread for one problem.
http://www.codeguru.com/forum/showthread.php?t=519924
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
-
January 12th, 2012, 05:47 PM
#3
Re: The strange performance of Visual C++ multi thread application
Originally Posted by D_Drmmr
...Only create a single thread for one problem...
That's just funny. Considering multi-threaded nature of the question
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|