Thread list[] = new Thread[rootThreadGroup.activeCount()]; int count = rootThreadGroup.enumerate(list); for (int i=count-1; i >=0; i--) { list[i].setPriority(pri); } return null; }
synchronized (rootThreadGroup) { Thread thread = new InputDeviceBlockingThread( rootThreadGroup, device); thread.setPriority(threadPriority); return thread; } }
                    public Object run() {			Thread list[] = new			    Thread[rootThreadGroup.activeCount()];			int count = rootThreadGroup.enumerate(list);			for (int i=count-1; i >=0; i--) {			    list[i].setPriority(pri);			}			return null;		    }