Answer Posted / 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 |
Post New Answer View All Answers
how do I create a runnable with inheritance? : Java thread
Can a class be a super class and a sub-class at the same time? Give example.
What is difference between static class and normal class?
What are the types of relation?
Can we sort a map in java?
What is the public field modifier?
Are generics important java?
How to Sort Strings which are given in List and display in ascending order without using java api.
Explain notify() method of object class ?
Why string is immutable or final in java
What is == and === in javascript?
Differece between class and generic class?
Is java a super set of javascript?
What does sizeof return?
How do you test a method for an exception using junit?