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
I agree. Here's the link:
To which of the following can we apply the synchronized keyword
thread safe for SecureRandom.nextBytes()?
Thread Help Wanted
Thread Question: Are they all "under" creator?
For those of you who are certified ......
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015