I have a quad-core and oct-core machines and one of the things I generally do is to run my code only on single core. However to do this one needs to boot OS with single core configuration. With windows it is fairly easy to do:
- Go to run (Windows + R button)
- type msconfig
- press enter
MSConfig In boot click Advanced options.. button
Check Number of Processors and pick the count
Selecting Number of Processors reboot
After rebooting if you bring up task manager, it will show only one processor instead of usual 4⁄8:
If you want to revert back to old setting, just uncheck the Number of Processors check box from step 5 and reboot: