THE PACKAGE JAVA.LANG
java.lang.Thread
20.20
20.20.21
public final ThreadGroup getThreadGroup()
If this thread is alive, this method returns a reference to the
ThreadGroup
 object
that represents the thread group to which this thread belongs. If this thread has
died (has been stopped), this method returns
null
.
20.20.22
public final int getPriority()
The current priority of this
Thread
 object is returned.
20.20.23
public final void setPriority(int newPriority)
throws SecurityException, IllegalArgumentException
First, the
checkAccess
 method ( 20.20.12) of this
Thread
 object is called with
no arguments. This may result in throwing a
SecurityException
 (in the current
thread).
If the
newPriority
 argument is less than
MIN_PRIORITY
 ( 20.20.1) or
greater than
MAX_PRIORITY
 ( 20.20.2), then an
IllegalArgumentException
 is
thrown.
Otherwise, the priority of this
Thread
 object is set to the smaller of the speci 
fied
newPriority
 and the maximum permitted priority ( 20.21.12) of the
thread's thread group ( 20.20.21).
20.20.24
public final boolean isDaemon()
The result is
true
 if and only if this thread is marked as a daemon thread.
20.20.25
public final void setDaemon(boolean on)
throws SecurityException, IllegalThreadStateException
First, the
checkAccess
 method ( 20.20.12) of this
Thread
 object is called with
no arguments. This may result in throwing a
SecurityException
 (in the current
thread).
If this thread is alive, an
IllegalThreadStateException
 is thrown. Other 
wise, this thread is marked as being a daemon thread if the argument is
true
, and
as not being a daemon thread if the argument is
false
.
597






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved