Thread.setName
Class Overview | Class Members |
This Package |
All Packages
public final void setName( String name )
Parameters
- name
- the new name for this thread.
Description
Changes the name of this thread to be equal to the argument
name.
First the checkAccess method of this thread is called
with no arguments. This may result in throwing a
SecurityException.
Exceptions
SecurityException
if the current thread cannot modify this
thread.
See Also
checkAccess, getName