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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of static methods and static variables?

538


Where is singleton pattern used?

520


What happens when main () method is declared as private?

646


How do you remove duplicates from an array in java?

524


What is the diffrence between inner class and nested class?

558






Why does java not support pointers?

547


What is your platform?s default character encoding and how to know this?

1752


how to prepare for IT Officers Interview in Banks

1498


How do you reverse sort a list in java?

505


What is ternary operator? Give an example.

593


What is anti pattern in cyber security?

519


What is a char in java?

530


What does string mean in java?

627


Can static method access instance variables ?

592


What is io stream in java?

513