Java ThreadGroup getMaxPriority() methodThe getMaxPriority() method of ThreadGroup class returns the maximum priority of the thread group. Syntax:Return:This method returns the maximum priority that a thread in the thread group can have ExampleTest it NowOutput: Maximum priority of Parent threadGroup: 10 Maximum priority of Child threadGroup: 10 Thread-1 completed executing Thread-2 completed executing
Next TopicThreadGroup in Java
|