<%-- generated by Dynamator Wed Mar 31 19:15:35 CST 2004 --%> <%@ page session="false" %> <% ThreadGroup tg = Thread.currentThread().getThreadGroup(); Thread[] threads = new Thread[tg.activeCount()]; int n = tg.enumerate(threads); if ( n < threads.length ) { Thread[] newThreads = new Thread[n]; System.arraycopy(threads, 0, newThreads, 0, n); threads = newThreads; } %> Currently Executing Threads <% { Thread[] $threads = threads; int lim$threads = $threads.length; Thread thread; for ( int iThreads = 0; iThreads < lim$threads; ++iThreads ) { thread = $threads[iThreads]; %><% } } %>
Name Priority Daemon? Alive? Running?
<%= thread.getName() %> <%= thread.getPriority() %> <% if ( thread.isDaemon() ) { %>Y<% } %> <% if ( !thread.isDaemon() ) { %> <% } %> <% if ( thread.isAlive() ) { %>Y<% } %> <% if ( !thread.isAlive() ) { %> <% } %> <% if ( thread.isInterrupted() ) { %> <% } %> <% if ( !thread.isInterrupted() ) { %>Y<% } %>