If I have a
public void Method(int m)
{
...
}
how can I create a thread to this method?
Thread t = new Thread((Me
The method you are calling requires a parameter. Because it has one parameter and a return type of void you can use the following
ThreadPool.QueueUserWorkItem(o => Method(m));
You do not need to change the int to an object in the method signature using this method.
There are advantages to using the ThreadPool over starting your own Thread manually. Thread vs ThreadPool