Thread Priorities : Thread Priority « Thread « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Thread » Thread Priority 
7.3.1.Thread Priorities
Thread objects have Priority from through 10, with 10 being the most urgent. 

The JVM Thread scheduler tries to run the highest priority available Thread. 

The constants Thread.MIN_PRIORITY, Thread.MAX_PRIORITY, and Thread.NORM_PRIORITY have the values 110, and 5, respectively. 

If not explicitly set, a thread's priority will have the same priority as the priority of the thread that created it.

If you want to have a particular priority, you should call setPriority before starting the Thread.
7.3.Thread Priority
7.3.1.Thread Priorities
7.3.2.Thread class defines constants for MIN_PRIORITY (which is 1) and NORM_PRIORITY (which is 5).
7.3.3.Every thread has a priority, which is an integer from 1 to 10
7.3.4.The default priority is 5
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.