Lines Matching defs:threads

47  * Virtual Machine allows an application to have multiple threads of
51 * executed in preference to threads with lower priority. Each thread
61 * Machine continues to execute threads until either of the following
67 * <li>All threads that are not daemon threads have died, either by
174 /* For autonumbering anonymous threads. */
272 * between threads that would otherwise over-utilise a CPU. Its use
595 * threads to exist concurrently without throwing an {@link
661 * The result is that two threads are running concurrently: the
678 * group threads created/set up by the VM. Any new functionality added
687 * so that it can be added to the group's list of threads
800 * other threads, potentially resulting in arbitrary behavior. Many
1165 * Returns an estimate of the number of active threads in the current
1171 * threads may change dynamically while this method traverses internal
1173 * system threads. This method is intended primarily for debugging
1176 * @return an estimate of the number of active threads in the current
1192 * <i>if the array is too short to hold all the threads, the extra threads
1202 * an array into which to put the list of threads
1204 * @return the number of threads put into the array
1350 * threads running are all daemon threads.
1553 // optimization so we do not call into the vm for threads that
1573 * Returns a map of stack traces for all live threads.
1574 * The map keys are threads and each map value is an array of
1580 * <p>The threads may be executing while this method is called.
1590 * to see if it is ok to get the stack trace of all threads.
1617 // Get a snapshot of the list of all threads
1618 Thread[] threads = getThreads();
1619 StackTraceElement[][] traces = dumpThreads(threads);
1620 Map<Thread, StackTraceElement[]> m = new HashMap<>(threads.length);
1621 for (int i = 0; i < threads.length; i++) {
1624 m.put(threads[i], stackTrace);
1701 private native static StackTraceElement[][] dumpThreads(Thread[] threads);
1885 * logging to a specific device, or file) for those threads that would