Question: How to control process affinity in .NET 2.0 ? I am newbie in .Net. 
please help !

Answer: 
Please have a look at my post @[How to use hardware threads in C# dot net code running on multicore machine?](https://stackoverflow.com/questions/2490711/how-to-use-hardware-threads-in-c-dot-net-code-running-on-multicore-machine/2491143#2491143)
Using the [Process.ProcessorAffinity](http://msdn.microsoft.com/en-us/library/system.diagnostics.process.processoraffinity(v=VS.90).aspx) property.

```
// this will cause the process to run only on CPU 1
Process.ProcessorAffinity = new IntPtr(1 << 0);
// this will cause the process to run only on CPU 1+2
Process.ProcessorAffinity = new IntPtr(1 << 0 | 1 << 1);

```