I have the following problem, I need to run the same N method in a for
and know when all the threads have already finished running it.
I needed something like this:
foreach (MeuObjeto obj in lstObj)
{
new Thread(delegate() { MetodoX(obj ); }).Start();
}
metodoY(); // só rodar depois que todas as thread acima já tiverem terminado.