예제 #1
0
 static void joinThreads(ThreadClass[] threadArray) throws InterruptedException {
   for (ThreadClass tc : threadArray) {
     tc.join();
   }
 }
예제 #2
0
 static void startThreads(ThreadClass[] threadArray) {
   for (ThreadClass tc : threadArray) {
     tc.start();
   }
 }