Saji Pillai

Greenhorn
+ Follow
since Oct 13, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saji Pillai

My understanding is that when you call notifyAll(), all the objects waiting in the pool to be notified are moved out of waiting state. But only one of them can acquire a lock on the object. The other threads which are now waiting for the lock (not for notification) may acquire the object lock whenever it becomes available. You could modify your code to get the desired effect by using notify().
BTW, I haven't gone thru your code
Based my explanation on the situation you described.