Lines Matching defs:threads
33 * A thread group represents a set of threads. In addition, a thread
67 Thread threads[];
320 * Returns an estimate of the number of active threads in this thread
325 * threads may change dynamically while this method traverses internal
327 * system threads. This method is intended primarily for debugging
330 * @return an estimate of the number of active threads in this thread
372 * an array into which to put the list of threads
374 * @return the number of threads put into the array
393 * hold all the threads, the extra threads are silently ignored.
397 * <i>if the array is too short to hold all the threads, the extra threads
406 * an array into which to put the list of threads
412 * @return the number of threads put into the array
437 if (threads[i].isAlive()) {
438 list[n++] = threads[i];
592 * Stops all threads in this thread group.
598 * threads in this thread group and in all of its subgroups.
601 * to access this thread group or any of the threads in
617 * Interrupts all threads in this thread group.
623 * threads in this thread group and in all of its subgroups.
626 * to access this thread group or any of the threads in
639 threads[i].interrupt();
654 * Suspends all threads in this thread group.
660 * threads in this thread group and in all of its subgroups.
663 * to access this thread group or any of the threads in
680 * boolean argument) all of the threads in this thread group and its
693 if (threads[i]==us)
696 threads[i].suspend();
698 threads[i].stop();
713 * Resumes all threads in this thread group.
719 * threads in this thread group and in all of its sub groups.
722 * access this thread group or any of the threads in the
740 threads[i].resume();
756 * group must be empty, indicating that all threads that had been in
788 threads = null;
855 * Increments the count of unstarted threads in the thread group.
856 * Unstarted threads are not added to the thread group so that they
858 * counted so that daemon thread groups with unstarted threads in
875 * certain system threads to the system thread group.
888 if (threads == null) {
889 threads = new Thread[4];
890 } else if (nthreads == threads.length) {
891 threads = Arrays.copyOf(threads, nthreads * 2);
893 threads[nthreads] = t;
934 * or unstarted threads in the group; there are no subgroups in
968 if (threads[i] == t) {
969 System.arraycopy(threads, i + 1, threads, i, --nthreads - i);
972 threads[nthreads] = null;
1001 out.println(threads[i]);