img
. . . . . .
checkAccess
public void checkAccess() throws SecurityException
If there is a security manager, its checkAccess() method is called with the Thread as an
argument.
Chapter 10.
Reference:
getName setName
public String getName()
public void setName(String name)
throws SecurityException
This gets/sets the print name for the thread.
Reference:
Chapter 4.
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:
Chapter 10.
countStackFrames
public int countStackFrames()
This returns the depth of the stack.
Reference:
Chapter 10.
Comments:
Deprecated in Java 2. Not well defined in any case.
dumpStack
public static void dumpStack()
This prints out the stack.
Reference:
Chapter 10.
activeCount
public static int activeCount()
This returns the number of active threads in the current thread's thread group.
Reference:  Chapter 10.
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 :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home