img
. . . . . . . .
String name)
throws SecurityException,
IllegalThreadStateException
These create a new thread object in the thread group stated.
References:
Chapters 4 and 10.
getThreadGroup
public final ThreadGroup getThreadGroup()
This returns the thread group for this thread object.
Reference:
Chapter 10.
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:
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.
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home