This is something that you can do - just Google the method Peter already
replied with.
Honestly though, this is something you really, really don't want to be
doing. The O/S Thread Scheduler is better at scheduling threads than you
are, and leaving it the flexability to schedule as it sees fit is reall the
best way to go.
Unless you're doing something very unique, or have some hardware level
memory mapping going on, I would steer clear of this.
It's always tempting to people new to concurrency to start setting processor
thread affinity, just as it's often tempting to start setting thread
priorities. Doing this almost always leads to less performance and more
problems, and should be avoided at almost all costs.
If you're really desperate for more performance, download Richter's Power
Threading library, and use his I/O Completion Port thread pool. If nothing
else, reading through his code for a few hours will be a good learning
experience...
--
Chris Mullins
"Bob Allen" <bo*@greatsummits.comwrote in message
news:eL**************@TK2MSFTNGP04.phx.gbl...
Is there a way to specifiy what processor to run a thread on in a quad
core processor in c#. Any links or direction is greatly appreciated.
Bob;