Setting thread priorities
I'm using a ThreadPoolExecutor to manage my threads.
I want to change the priorities of some of the threads I'm running.
Because I'm using the above ExecutorService, I don't have references to the threads for each Runnable I'm running.
How can I change the priority of any of these Threads? Should I have an 'if' statement in each run() that, when activated, changes the priority of Thread.currentThread() ? That way the currentThread() would be guaranteed to be the one for the Runnable changing its priority, correct?
Any advice would be much appreciated.

