The ThreadGroup class itself does not impose any access restrictions, such as allowing threads from one group to inspect or modify threads in a different group. Rather the Thread and ThreadGroup classes cooperate with security managers (subclasses of the SecurityManager class), which can impose access restrictions based on thread group membership.
The Thread and ThreadGroup class both have a method, checkAccess, which calls the current security manager's checkAccess method. The security manager decides whether to allow the access based on the group membership of the threads involved. If access is not allowed, the checkAccess method throws a SecurityException. Otherwise, checkAccess simply returns.
The following is a list of ThreadGroup methods that call ThreadGroup's checkAccess before performing the action of the method. These are what are known as regulated accesses, that is, accesses that must be approved by the security manager before they can be completed.
- ThreadGroup(ThreadGroup parent, String name)
- setDaemon(boolean isDaemon)
- setMaxPriority(int maxPriority)
- stop
- suspend
- resume
- destroy
- constructors that specify a thread group
- stop
- suspend
- resume
- setPriority(int priority)
- setName(String name)
- setDaemon(boolean isDaemon)
Related Posts:-
1 comments:
According to Stanford Medical, It is indeed the SINGLE reason women in this country get to live 10 years more and weigh 19 KG less than we do.
(And realistically, it is not about genetics or some secret-exercise and EVERYTHING around "how" they are eating.)
P.S, I said "HOW", and not "what"...
Tap on this link to find out if this little test can help you find out your true weight loss potential
Post a Comment