A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Jul 27, 2002
Sep 13, 2002 18:49:00
1)are the threads in the monitor's waiting pool given more preference than the others?
2)bycalling yield() if u r not giving up the lock how can other threads execute?
Joined: Mar 22, 2002
Sep 13, 2002 19:16:00
1. It's implementation dependent.
2. If you want your threads to cooperate together, use wait and notify instead.
A more detailed explanation is available
For those of you who are certified ......
Thread Help Wanted
To which of the following can we apply the synchronized keyword
Thread Question: Are they all "under" creator?
thread safe for SecureRandom.nextBytes()?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013