how to set CPU affinity of a program?
问题 I have a program written in C#, I am using VSTS 2008 + .Net 3.5 + Windows Vista Enterprise x86 to develop a Windows Forms application. My current computer is dual-core CPU, I want to set CPU affinity of my program to run on a specific CPU and free another CPU to do some other job. Any ideas how to do this? Either through coding or configuration is ok. A little more background is, my program is CPU intensive, so I do not want to let it occupy all two CPU resources on my computer and I want to