CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2012

    Unhappy 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

    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

  2. #2
    Join Date
    Jul 2005

    Re: The strange performance of Visual C++ multi thread application

    Please don't cross-post. Only create a single thread for one problem.
    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

  3. #3
    Join Date
    Aug 2000
    New York, NY, USA

    Re: The strange performance of Visual C++ multi thread application

    Quote Originally Posted by D_Drmmr View Post
    ...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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.