ThreadGroup currentGroup= Thread.currentThread().getThreadGroup();
int numThreads = currentGroup.activeCount();
currentGroup.enumerate(listOfThreads);
System.out.println("Thread #" + i + " = " + listOfThreads[i].getName());
groupNORM.setMaxPriority(Thread.NORM_PRIORITY);
System.out.println("Group's maximum priority = " + groupNORM.getMaxPriority());