I'm wrote a C# application to run a batch process on around 50 million records. Initially this was taking around about 60 seconds to run. Since I'm running a multi-core machine (Intel Quad 6600 - 4 cores), I alterered the code to use 4 threads, which had the desired effect of speeding up my code to around about 40 seconds running time, with all 4 cores running at 100%..
Now, my problem is this. During a routine upgrade, I replaced the hard-drive, and reinstalled a fresh version of windows xp (with all windows updates). Upon rebuilding the application, the run time had gone up to nearly 180 seconds, and the cores were all running at a max of 75%.
I'm using Visual Studio 2005 on a Windows XP machine.
I've tested all the hardware, and its all running fine, which leads me to believe theres a problem with the .net framework somewhere.
Is there some flag or option I'm missing when building the application, thats causing this CPU throttling? Is there someway I can force the application to use 100% of processor power as it was previously?
Now, my problem is this. During a routine upgrade, I replaced the hard-drive, and reinstalled a fresh version of windows xp (with all windows updates). Upon rebuilding the application, the run time had gone up to nearly 180 seconds, and the cores were all running at a max of 75%.
I'm using Visual Studio 2005 on a Windows XP machine.
I've tested all the hardware, and its all running fine, which leads me to believe theres a problem with the .net framework somewhere.
Is there some flag or option I'm missing when building the application, thats causing this CPU throttling? Is there someway I can force the application to use 100% of processor power as it was previously?
Comment