A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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()?
For those of you who are certified ......
Thread Help Wanted
Thread Question: Are they all "under" creator?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014