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
Can we use static class instead of singleton?
What is singletonlist in java?
Can we extend singleton class?
What do you mean by mnemonics?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is the difference between preemptive scheduling and time slicing?
Which sorting algorithm is in place?
What does this () mean in constructor chaining concept?
What is runtime polymorphism or dynamic method dispatch?
How do you reverse sort a list in java?
Why main function is static?
What are selection structures?
Is oracle java 11 free?
Explain about interrupt() method of thread class ?
What is the length of a string?