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 |
What is use of inner class in java?
How can u increase the heap size in the memory?
What is a layout manager and what are different types of layout managers available in java awt?
Is a string literal?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
Can a class be a super class and a sub-class at the same time? Give example.
Can we increase array size dynamically in java?
What is an infinite loop? How infinite loop is declared?
what are the differences between final,finally,finalize methods?
Why is it called a string?
What restrictions are placed on method overloading in java programming?
what is the use of private constructor in core java?
3 Answers OnMobile, Satyam, Yash Technologies,