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
What are the drawbacks of singleton class?
How do you use compareto in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Why javac is not recognized?
How will you communicate between two applets?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Why do I need to declare the type of a variable in java?
What is the purpose of final keyword and when to use it?
Explain wrapper classes in java?
Explain java thread life cycle.
What is a type parameter in java?
What is appletviewer?
What do you understand by access specifiers in Java?
What are java methods?
Can we call the run() method instead of start()?