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

Can singleton class be inherited in java?

0 Answers  


Can we return null in java?

0 Answers  


How do you initialize an arraylist in java?

0 Answers  


What is the size of an array?

0 Answers  


What is an example of character?

0 Answers  






What is an 8 bit word?

0 Answers  


Write code to implement bubble sort in java?

0 Answers  


What is wrapper class html?

0 Answers  


How we can make copy of a java object?

0 Answers  


What is string example?

0 Answers  


What is the difference between int and integer in java?

0 Answers  


Difference between keyword and identifier.

0 Answers   TCS,


Categories