how to run the main thread after all child threads have completed there exceution
问题 I have a requirement in which 28 threads have to complete some functionality. I have created these threads as in anonymous inner classes like : Thread t=new Thread(new Runnable(){public void run() {//code }} ); t.start(); Now I want that the further execution should start after all these threads have finished there work. Note : I am confused about join() method as it makes my threads run sequentially. So can anyone suggest me how can I make main thread run once these threads are done with