I am having array of objects and i need them to be executed in a separate threads. I thought it is better to use asynchronous call begin/end.invoke but even though it is executing on a new thread, it is waiting to one thread's callback returns. But i need to fire all the object on different threads at once.
But my another concern is if i create a thread for each object it will be costly. Please let me know the best way to perform this task.
Below is the assync method i have tried,
object[10] objs = new objects[];
foreach (object o in objs)
{
// method needs to process ASAP
StartProcessing(o);
}
void StartProcessing(object o)
{
}