The LoadCpu tool creates one or more threads to waste CPU cycles and emulate slower environment, such as for testing and troubleshooting. There has been a great deal of similar tools out there, and this one in particular is convenient/special as it takes process affinity mask as a parameter.
That is, /a:NN defines affinity mask, e.g. 5 for 1st and 3rd CPU (two threads), and /r:MM defines [roughly] CPU load time in percent.
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.Â All rights reserved. C:\>loadcpu /a:5 /r:25 System Affinity Mask: 0xff Process Affinity Mask: 0x05 Rate: 25%