What I am trying to do is spawn off multiple threads, I posted using the for() loop.
I basically have in my code what you posted. I keep getting the same error.
No overload for 'Run' matches delegate 'System.Threading.ThreadSt
also tried this, same error...
ProcessThread oProcessThread = new ProcessThread();
Thread[] oThread = new Thread[maxThreads];
maxThreads = 200;
for (int i = 0; i <= maxThreads; i++)
{
oThread[i] = new Thread(new ThreadStart(oProcessThread
oThread[i].Start(i.ToStrin
}
my class is simple as above:
public class ProcessThread
{
public void Run(string value)
{
Console.WriteLine("Process
}
}
Main Topics
Browse All Topics





by: jungesPosted on 2008-12-11 at 13:17:15ID: 23152407
to create a Thread is very simple:
public System.Threading.Thread myThread = new System.Threading.Thread( new System.Threading.ThreadSta
myThread.Start();
...
private void myThreadFunction(){
...
}