How to run specific thread on specific CPU

  • Thread starter Thread starter ti
  • Start date Start date
T

ti

Hello,

I'd like to know about how to run specific thread on specific CPU.
I know I can use ProcessThread.ProcessorAffinity.

But I can't understand that how I can map my Thread object to
ProcessThread-Class.

---
ThreadStart ts = new ThreadStart(myThread);
Thread th = new Thread(ts);
th.Start();
---
In this case, how I can map th to ProcessThread.

Could you provide me sample code?

//Best Regards,
//to.iijima
 
Hi,

AFAIK there is no way of doing this in .NET 1.1 , I havent check the 2.0 doc
on this but I bet there is nothing there neither.


cheers,
 
Thank you, Marchin.

I use VS2005, so I have checked 2.0 doc.
But I haven't found out how to do this.

Does anyone know how to do this?

//Best Regards,
//to.iijima
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

threading 2
thread won't start on server 8
Hyper-Threading and ProcessorAffinity 8
using delegate via a thread ??? 2
Thread GC collection 6
Thread 1
Thread.Sleep 12
CPU Utilization for a thread and killing a thread 2

Back
Top