First i am sorry if there is another thread like this and i didnt saw it!
My problem is: I want to create multiple threads. But these threads must execute same function.
How i can make this happen?
Like so :
for(int i=0;i<20;i++)
{
Thread t = new Thread(myFunction);
t.Start();
}
Is there any way to make this work?
Why not use tasks? It is also Async (since that is what you are looking for I think.
The difference can be found here:
What is the difference between task and thread?