1) There are 10 different threads in runnable state. Each
having priority 1 to 10. How does the CPU schedules or
executes these threads?
Answer Posted / shiv
At any given time the highest priority thread will always
be in a execution state. if there are more than one threads
with same priority then JVM decides which one should be
executed first. Thus if the priority is from 1..10 the they
will be scheduled for execution in a reverse manner.
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
Is double bigger than float?
What is update method called?
What are the characteristics of java?
What state is a thread in when it is executing?
What is defined as false sharing in the context of multithreading?
Tell us something about an iterator.
In java, what is the difference between method overloading and method overriding?
Is it possible to override the main method?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What are the advantages of unicode?
Is integer passed by reference in java?
What defines function?
Can you sort a string in java?
What is the formula to calculate percentage?
Differentiate between == and equals().