+ 4

How many priory values that a thread can be assigned?

27th Apr 2019, 4:15 AM
Charitha Sri
Charitha Sri - avatar
4 odpowiedzi
+ 5
we can set thread priority between 1 to 10 include 1 and 10 also except this if we are trying to set any other value then JVM will throw an exception i. e. IllegalArgumentException
7th Nov 2019, 11:47 AM
Saroj Patel
Saroj Patel - avatar
+ 2
Are you sure? I think the answer is 3
1st May 2019, 2:31 PM
Charitha Sri
Charitha Sri - avatar
+ 2
Accepted values of priority for a thread is in range of 1 to 10. Answer: 10 Thread class (priority) has 3 static variables. (MIN, NORM, MAX)
1st May 2019, 2:44 PM
TheEngineerIN
TheEngineerIN - avatar
+ 1
Accepted value of priority for a thread is in range of 1 to 10. Answer: 10
27th Apr 2019, 7:30 AM
TheEngineerIN
TheEngineerIN - avatar