• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread  RSS feed

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!