checkAccess
public void checkAccess() throws SecurityException
If there is a security manager, its checkAccess() method is called with the Thread as an
argument.
Reference:
getName setName
public String getName()
public void setName(String name)
throws SecurityException
This gets/sets the print name for the thread.
Reference:
isDaemon setDaemon
public boolean isDaemon()
public void setDaemon(boolean on)
throws SecurityException,
IllegalThreadStateException
This gets/sets this thread to be a daemon. You cannot change the status of a running thread.
Reference:
countStackFrames
public int countStackFrames()
This returns the depth of the stack.
Reference:
Comments:
Deprecated in Java 2. Not well defined in any case.
dumpStack
public static void dumpStack()
This prints out the stack.
Reference:
activeCount
public static int activeCount()
This returns the number of active threads in the current thread's thread group.
Comments: Deprecated in Java 1.1. See ThreadGroup.allThreadsCount().
enumerate
public static final int enumerate(Thread tarray[])
This fills tarray with as many currently active threads as fit, returning that number.
Search WWH :