ThreadGroup.setMaxPriority

ThreadGroup.setMaxPriority

Class Overview | Class Members | This Package | All Packages

Syntax
public final void setMaxPriority( int pri )
Parameters
pri
the new priority of the thread group.
Description
Sets the maximum priority of the group.

First, the checkAccess method of this thread group is called with no arguments; this may result in a security exception.

Threads in the thread group that already have a higher priority are not affected.

Exceptions
SecurityException if the current thread cannot modify this thread group.
See Also
SecurityException, checkAccess