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
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
Thread Question: Are they all "under" creator?
Thread Help Wanted
For those of you who are certified ......
thread safe for SecureRandom.nextBytes()?
To which of the following can we apply the synchronized keyword
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014