C
csharpula csharp
Hello,
I got a question regarding the usage of background worker.
How can I run few threads via background worker with different objects
as parameter each time.
I understood that I can't do this:
for (int i = 0; i < inputNum; i++)
{
string param = i.ToString();
bw.RunWorkerAsync(param);
}
So,how can I do it by running few threads with one background worker?
Thank you!
I got a question regarding the usage of background worker.
How can I run few threads via background worker with different objects
as parameter each time.
I understood that I can't do this:
for (int i = 0; i < inputNum; i++)
{
string param = i.ToString();
bw.RunWorkerAsync(param);
}
So,how can I do it by running few threads with one background worker?
Thank you!