@ Override public void setPriority ( int newPriority ) { if ( newPriority >= Thread . MIN_PRIORITY && newPriority <= Thread . MAX_PRIORITY ) { thread . setPriority ( newPriority ) ; } }
Sets the priority level for the thread . Used by the OS .