THE PACKAGE JAVA.LANG
java.lang.ThreadGroup
20.21
20.21.13
public final void setMaxPriority(int newMaxPriority)
throws SecurityException, IllegalArgumentException
First, the
checkAccess
 method ( 20.21.4) of this
ThreadGroup
 object is called
with no arguments. This may result in a
SecurityException
 being thrown (in
the current thread).
If the
newMaxPriority
 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
ThreadGroup
 object is set to the smaller of the
specified
newMaxPriority
 and the maximum permitted priority ( 20.21.12) of
the parent of this thread group ( 20.21.12). (If this thread group is the system
thread group, which has no parent, then its maximum priority is simply set to
newMaxPriority
.) Then this method is called recursively, with
newMaxPriority
as its argument, for every thread group that belongs to this thread group.
20.21.14
public final boolean isDaemon()
The result is
true
 if and only if this thread group is currently marked as a daemon
thread group.
20.21.15
public final void setDaemon(boolean daemon)
throws SecurityException
First, the
checkAccess
 method ( 20.21.4) of this
ThreadGroup
 object is called
with no arguments. This may result in a
SecurityException
 being thrown (in
the current thread).
This thread group is marked as being a daemon thread group if the argument
is
true
, and as not being a daemon thread group if the argument is
false
.
20.21.16
public int threadsCount()
This method returns the number of threads that directly belong to this thread
group.
20.21.17
public int allThreadsCount()
This method returns the number of threads that belong to this thread group or to
any of its subgroups.
607






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