Every time I compile using visual studio the rest of my computer crawls because visual studio is hogging all the processors. Is there a way to limit the number of processors tha
A more optimal answer comes from Mikhail Virovets at https://developercommunity.visualstudio.com/comments/497084/view.html
Decrease the compiler process priority to below normal. This means it will use as much CPU as possible but without interfering with other things you're trying to use.
Define a registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cl.exe\PerfOptions
Then create a DWORD value named CpuPriorityClass
= 5 (5 means "below normal").
Note that this affects all processes named "cl.exe".