Top.Mail.Ru
April 17th, 2005 - Java developers — LiveJournal
? ?

Java developers

April 17th, 2005
Image

11:34 am - Imagebobbotron - 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?
Powered by LiveJournal.com
Image