priority is really a bad idea for controlling the threads.Java's scheduling and priority models are weak; in particular1. no guarantee is given that the highest priority runnable thread is always executing;2. equal priority threads may or may not be time sliced; and3. where native threads are used, different Java priorities may be mapped to the same operating system priority use Thread Groups or Thread Manager to control your threads.
use Thread Groups or Thread Manager to control your threads.