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

What does the “static” keyword mean? Can you override private or static method in java?

0 Answers  


What is a parameter used for?

0 Answers  


Can you call one constructor from another if a class has multiple constructors?

0 Answers  


What is encapsulation? Elaborate with example?

1 Answers   BMC,


What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?

0 Answers  






Difference between stack and queue?

0 Answers   Flextronics,


What is the difference between normal report & matrix report?

0 Answers  


whats is the use of final,in which situation final can be used in the application?

2 Answers   DNS,


What is the purpose of the file class in java programming?

0 Answers  


What is casting in java programming?

0 Answers  


What are the elements of java?

0 Answers  


How two different class threads communicate with each other?. send example code.

4 Answers  


Categories