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 a class with private constructor be extended?
Write a java program to count the number of words present in a string?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Difference difference paint() and paintcomponent()?
What is difference between adapter class and listener?
How many types of the indexof method are there for strings?
State the difference between strings and arrays.
What is a nested class?
What is files manifesting?
What type of language is java?
How do you convert string to int in java?
What are benefits of java?
Why javac is not recognized?
What methodology can be utilized to link to a database?
Is simpledateformat safe to use in the multithreaded program?