what is Thread priority?

Answers were Sorted based on User's Feedback



what is Thread priority?..

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

what is Thread priority?..

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 Thread priority?..

Answer / guest

first come first serve

Is This Answer Correct ?    0 Yes 1 No

what is Thread priority?..

Answer / guest

first come first serve

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is native method in java?

0 Answers  


What is udp in java?

0 Answers  


Java is based on pass by reference or pass by value ..

6 Answers   L&T, Wipro,


What do you mean by local variable and instance variable?

0 Answers  


There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?

5 Answers   HCL,






Can you explain the final method modifier?

0 Answers  


How do you remove all elements from an arraylist in java?

0 Answers  


how an we achive multiple inhetitance in java using interface..??

2 Answers  


What is entry set in java?

0 Answers  


Give some features of interface?

0 Answers  


How do you convert int to char in java?

0 Answers  


What is a nested structure?

0 Answers  


Categories