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 an example of a boolean?

580


Is java owned by oracle?

530


Explain the reason behind ending a program with a system.exit(0)?

608


What is the symbol for line break?

618


How many bytes is a string java?

541






What are the types of methodology?

520


What will happen to the exception object after exception handling?

588


What is difference between filereader and bufferedreader?

539


What is thread safe singleton?

532


What are the application of stack?

511


Why 1 is not a prime number?

574


Can a class extends itself in java?

535


What does flag mean in java?

546


Are primitives objects?

572


How do you use equal in java?

552