I have a console application that creates multiple threads that all run at the same time. I need to detect when all the threads are complete so I can start a new method. How do I detect when all threads are finished running???
public static Thread workerThread1;
public static Thread workerThread2;
public static Thread workerThread3;
static void Main(string args)
workerThread1 = new Thread(RiteAid);
workerThread2 = new Thread(Kmart);
workerThread3 = new Thread(Walgreens);