what is Thread priority?
Answers were Sorted based on User's Feedback
Answer / malligontla
By default, the priority of Thread is 5. But the range is
from 1 to 10.
MAX_PRIORITY (value 10)
NORM_PRIORITY (value 5)
MIN_PRIORITY (value 1)
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / mamatha
Thread scheduler uses the thread priorities in the form of integer value to each of its thread to determine the execution schedule of threads .
Thread gets the ready-to-run state according to their priorities.
Priorities are integer values from 1 (lowest priority given by the constant Thread.MIN_PRIORITY) to 10 (highest priority given by the constant Thread.MAX_PRIORITY).
The default priority is 5(Thread.NORM_PRIORITY).
| Is This Answer Correct ? | 10 Yes | 0 No |
When will you define a method as static in Java?
0 Answers SwanSoft Technologies,
How many types of voids are there?
How can you set an applet’s height and width as a percentage?
What is the difference between the font and fontmetrics classes in java programming?
Why does java not support operator overloading?
What are null interfaces in JAVA ? and give me some examples?
Difference between array and arraylist.
23 Answers Arise Solution, Banca Sella, iFocus, NIC, Sai Softech, Solartis, TCS, Verizon,
Are maps ordered java?
Can we declare an interface as final?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What are the benefits of operations?
What are inner classes or non static nested classes in java?