img
. . . . .
The Class java.lang.ThreadLocal
This class implements thread local storage by defining an object that can hold different values for
different threads.
ThreadLocal
public ThreadLocal()
This creates a new thread local object.
Reference:
Chapter 8.
get set
public Object get()
public void set(Object o)
These functions set/get a thread-local value for this object.
Reference:
Chapter 8.
The Class java.lang.ThreadGroup
ThreadGroup
public ThreadGroup(String name) throws SecurityException
public ThreadGroup(ThreadGroup parent, String name)
throws SecurityException, Null Pointer Exception
These create a new thread group.
Reference:
Chapter 10.
toString
public String toString()
This returns a printable string.
Reference:
Chapter 10.
checkAccess
public final void checkAccess() throws SecurityException
If there is a security manager, its checkAccess() method is called with the ThreadGroup as
an argument.
Chapter 10.
Reference:
getName
public final String getName()
Search WWH :
Custom Search
Previous Page
Multithreaded Programming with JAVA - Topic Index
Next Page
Multithreaded Programming with JAVA - Bookmarks
Home