Launch the Task Manager and go to the Details tab. Look for the process you wish to modify the affinity, and right-click it. Click on Set affinity in the Context Menu. From the Process affinity window, you can select the cores you wish the process to limit to, and uncheck the boxes next to the rest.
Also an idea to check which are your fastest cores to use.
Some will be faster than others ?