I create new thread as following:
Thread mThread = new Thread(new ThreadStart(m_C lassThread.Go)) ;
In my system I have 2 Process devices ,(CPU0 and CPU1) , I want to create 3
Threads, 2 of those thread to run in CPU0 and the last one in CPU1 , I get
some advice to use the ProcessThread.P rocessorAffinit y which seems OK to me .
The problem is how and where to use it ?
Should I change the :
Thread mThread = new Thread(new ThreadStart(m_C lassThread.Go)) ;
mThread.Start() ;
How to do that . is there any whay to do something like :
SetProcessorAff inity( ref hthread, int mask) ?????
Thread mThread = new Thread(new ThreadStart(m_C lassThread.Go)) ;
In my system I have 2 Process devices ,(CPU0 and CPU1) , I want to create 3
Threads, 2 of those thread to run in CPU0 and the last one in CPU1 , I get
some advice to use the ProcessThread.P rocessorAffinit y which seems OK to me .
The problem is how and where to use it ?
Should I change the :
Thread mThread = new Thread(new ThreadStart(m_C lassThread.Go)) ;
mThread.Start() ;
How to do that . is there any whay to do something like :
SetProcessorAff inity( ref hthread, int mask) ?????
Comment