String name)
throws SecurityException,
IllegalThreadStateException
These create a new thread object in the thread group stated.
References:
getThreadGroup
public final ThreadGroup getThreadGroup()
This returns the thread group for this thread object.
Reference:
checkAccess
public void checkAccess() throws SecurityException
If there is a security manager, its checkAccess() method is called with the Thread as an
argument.
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.
Reference:
Search WWH :