How to change the priority of thread or how to set priority of thread?



How to change the priority of thread or how to set priority of thread?..

Answer / Furkan Ahmad

The priority of a thread can be changed using the setPriority() method. The higher the priority, the more CPU time it will get. The priority is an integer value between MIN_PRIORITY (1) and MAX_PRIORITY (10).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

why the equals method can be override?when we override the equals method?

5 Answers  


What enableEvents() method do?

1 Answers  


What is unicode?

1 Answers  


What is java full form?

1 Answers  


"We cannot create an object of interface but we can create a variable of it". Discuss the statement with the help of an example. (Plz help us to provide immediately.)

3 Answers  


What is java abstraction with example?

1 Answers  


What is a boolean expression in java?

1 Answers  


What is java and why do we need it? Explain

1 Answers  


what is default constructor and parameterised constructor with example?

1 Answers   KPIT,


Can static method access instance variables ?

1 Answers  


What Is Resource Leak?

2 Answers  


whats the life cycle of jsp

2 Answers   Satyam,


Categories