I have this code:
Any ideas?Code:for (int i = 0; i < 4; i++) { Thread t = new Thread(new ThreadStart(Proc)); t.Start(); } //I want main thread to wait (in this case, for 4 threads to complete) before calling the codes below Console.Write("Complete");




Reply With Quote