17 April 2005 - java_dev (original) (raw)

11:34 am - bobbotron - Thread priorities When I first learned java, I had thought that thread priorities were used to adjust the timeslice each process receives during execution. From what I've learned since, when there are two threads with different priorities both unblocked, the thread with the higher priority will run uninterrupted by the lower priority thread until the higher priority finished execution or is blocked. Is that how it actually works? If so, how would you use that in a system?