Lines Matching refs:Thread
25 final Thread[] threads = new Thread[numberOfThreads]; in main()
27 threads[t] = new Thread(new Main()); in main()
30 for (Thread t : threads) { in main()
39 static Thread getHeapTaskDaemon() throws Exception { in getHeapTaskDaemon()
46 Thread[] array = new Thread[activeCount]; in getHeapTaskDaemon()
48 for (Thread thread : array) { in getHeapTaskDaemon()
50 thread.getState() != Thread.State.NEW) { in getHeapTaskDaemon()
55 Thread.sleep(10); in getHeapTaskDaemon()
60 Thread heapDaemon = getHeapTaskDaemon(); in test_getStackTraces()
65 Map<Thread, StackTraceElement[]> map = Thread.getAllStackTraces(); in test_getStackTraces()
66 for (Map.Entry<Thread, StackTraceElement[]> pair : map.entrySet()) { in test_getStackTraces()
67 Thread thread = pair.getKey(); in test_getStackTraces()
77 if (Thread.currentThread().getId() <= 0) { in test_getId()
81 Map<Thread, StackTraceElement[]> stMap = Thread.getAllStackTraces(); in test_getId()
82 for (Thread thread : stMap.keySet()) { in test_getId()