Lines Matching defs:threads
41 private static Thread[] threads = new Thread[NUM_THREADS];
51 // start threads, wait for them to block
55 threads[i] = new MyThread("MyThread-" + i);
56 threads[i].start();
57 ids[i] = threads[i].getId();
84 threads[i].getName() + " = " + s + " expected = -1");
105 threads[i].getName() + " = " + s);
109 // let threads go and do some more allocation
115 // wait for threads to get going again. we don't care if we
126 threads[i].getName() +
130 System.out.println(threads[i].getName() +
151 // let threads exit
159 threads[i].join();
192 ThreadInfo info = mbean.getThreadInfo(threads[i].getId());