Lines Matching refs:threads
41 private static Thread[] threads = new Thread[NUM_THREADS];
63 // start threads, wait for them to block
67 threads[i] = new MyThread("MyThread-" + i);
68 threads[i].start();
69 ids[i] = threads[i].getId();
72 // threads block after doing some computation
88 threads[i].getName() + " = " + t + " expected = -1");
94 threads[i].getName() + " = " + ut + " expected = -1");
118 threads[i].getName() + " = " + t);
124 threads[i].getName() + " = " + ut);
137 threads[i].getName() +
143 threads[i].getName() +
149 System.out.println(threads[i].getName() +
153 System.out.println(threads[i].getName() +
175 // let threads exit
183 threads[i].join();
216 ThreadInfo info = mbean.getThreadInfo(threads[i].getId());