public void setPriority ( int priority ) throws IllegalArgumentException { if ( priority < Thread . MIN_PRIORITY || priority > Thread . MAX_PRIORITY ) { throw new IllegalArgumentException ( "Priority out of range: " + priority ) ; } synchronized ( mPool ) { mPriority = priority ; } }
Sets the priority given to each thread in the pool .