if am have 100 threads(for ex:T1,T2---T100) how we give
priority to these threads and how the system excute these
threads

Answers were Sorted based on User's Feedback



if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the syst..

Answer / anand kumar

we will allocate the priority using threadobject,setPriority
(int n) method....then according to the no given jvm will
exicute the threads

Is This Answer Correct ?    3 Yes 0 No

if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the syst..

Answer / nishchita

setPriority() method can be used ..

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to perform selection sort in java?

0 Answers  


Can we change the value of static variable?

0 Answers  


What is the main functionality of the remote reference layer?

0 Answers  


How we can skip finally block of exception even if some exception occurs in the exception block in java?

0 Answers  


What is an object's lock and which object's have locks in java programming?

0 Answers  






Can we have try without catch block?

0 Answers  


what is polymorphism?

4 Answers  


Is alive in java?

0 Answers  


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

0 Answers  


What is java reflection?

0 Answers  


What 5 doubled?

0 Answers  


If a class is declared without any access modifiers, where may the class be accessed in java programming?

0 Answers  


Categories