186 }
187 }
188 }
189
190 public static void main(String[] args) {
191 Thread[] thrs = new Thread[THREAD_PER_CASE * 2];
192 for (int index = 0; index < thrs.length; index = index + 2) {
193 thrs[index] = new Case1Runner();
194 thrs[index + 1] = new Case2Runner();
195 }
196
197 for (int index = 0; index < thrs.length; index ++) {
198 try {
199 thrs[index].join();
200 } catch (Exception e) {
201 e.printStackTrace();
202 }
203 }
204 }
205 }
206
|
186 }
187 }
188 }
189
190 public static void main(String[] args) {
191 Thread[] thrs = new Thread[THREAD_PER_CASE * 2];
192 for (int index = 0; index < thrs.length; index = index + 2) {
193 thrs[index] = new Case1Runner();
194 thrs[index + 1] = new Case2Runner();
195 }
196
197 for (int index = 0; index < thrs.length; index ++) {
198 try {
199 thrs[index].join();
200 } catch (Exception e) {
201 e.printStackTrace();
202 }
203 }
204 }
205 }
|