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 / karthik
We are not sure about when a thread runs it depends upon the
thread scheduler which can able to run a thread at any time
so the priorities are not sure even if we use the
setpriority method for a thread : ref scjp book thread chapter
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is the concatenation operator in java?
What is indexof in java?
Explain the polymorphism principle?
Is math class static in java?
Is 0 a real number?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What is a marker interface?
What is the scope or life time of instance variables?
What is main function purpose?
What are the types of collections in java?
Give some features of interface?
Why does it take so much time to access an applet having swing components the first time?
What are thread groups?
What is the difference between sleep and wait in java?
Name some classes present in java.util.regex package.