what is Thread priority?

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


Please Help Members By Posting Answers For Below Questions

What is null object in java?

769


What are the principle concepts of oops?

724


What causes memory leak in java?

687


What are the drawbacks for singleton class?

745


Can we pass a primitive type by reference in java? How

705


What is math exp in java?

759


What is the purpose of tostring() method in java?

783


What is garbage collector?

812


Explain the advantages of packages in java?

700


Why do we need array in java?

729


What access modifiers can be used for methods?

805


Can a class with private constructor be extended?

688


How can we find the sum of two linked lists using stack in java?

767


What does += mean in java?

771


What is ‘is-a ‘ relationship in java?

789