Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three questions originating from RH&E's "The Complete Java2 Certification" bonus question part, and need help:
1. At any moment, can a thread be waiting for the lock of "more than one object"?
2. If there are exactly two threads ready to run, does the one with higher priority gets to run first? or it is up to the scheduler to decide?
3. If several threads are ready to run, does the one with the highest priority gets to run? or it is up to the scheduler to decide?
Thank you in advance.
Jia Pei Jen
e-mail:jiapei_jen@yahoo.com
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!