Being a daemon/non-daemon thread, and the thread priority are unrelated concepts. So a daemon can have high or low priority, as can a non-daemon thread.
Of course, often it is true that daemon threads have low priority, because they perform non-critical operations (if they didn't, they should not be daemon threads to begin with).
It is generally recommended that the priority of threads not be changed by the setPriority method (which means it should not be changed at all), and that it should be left to the JVM which thread to schedule. [ July 19, 2007: Message edited by: Ulf Dittmer ]
Ping & DNS - updated with new look and Ping home screen widget
Joined: Oct 23, 2002
Hi Ulf, thanks for correcting me. I wasn't aware that deamon threads could have higher priority than non deamon theads.