Why can't Visual Studio run on more than one c

2019-06-19 00:09发布

I'm running Visual Studio 2008 with the stuff-of-nightmares awful MS test framework. Trouble is that it's sending my CPU to 100% (well 25% on a quad-core).

My question is why can't Visual Studio run on more than one core? Surely M$ must have a sufficient handle on threading to get this to work.

8条回答
倾城 Initia
2楼-- · 2019-06-19 01:08

The /MP flag is only for builds, we at least it is according to this msdn

Now I would love to be wrong about it, but im pretty sure its just for builds. Which of course is still very useful.

查看更多
forever°为你锁心
3楼-- · 2019-06-19 01:10

In case anyone comes across this old question, VS2012 introduced parallel builds as a standard feature. Quote from the article:

Visual Studio 2010 included an option for "maximum number of parallel project builds." Although there was no indication of any restriction, this IDE option only worked for C++ projects. Fortunately, this restriction no longer applies to Visual Studio 11. Rather, there's now full support for parallel builds in other languages as well. To view this, run a copy of Process Explorer at the same time a solution with numerous projects is building. You'll see that multiple MSBuild instances are created -- as many as specified in the "maximum number of parallel project builds."

查看更多
登录 后发表回答