// Bump up a thread's priority to the cpu
// one notch above the usual.
thread.setPriority( Thread.NORM_PRIORITY + 1 );

// Drop up the thread's priority two notches below
// where it is now.
thread.setPriority( thread.getPriority() - 2 );