Is there any way to force a program to run on cpu1 rather than cpu0 given that I know that there are at least two cores?
I'm compiling C++ with code::blocks on Windows 7 x64
I know that you can pull up task manager and look for your application that is running. Right click on the application in the task manager and select Affinity.
Then you can select the processors you wish to use.
Yes there is in the Windows API: SetProcessAffinityMask(). You can also set a processes affinity using task manager as shown here.
There aren't very many valid reasons why you would want to do that. The OS generally does a good job of scheduling programs on the correct CPU.