• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

notify and notifyAll

 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was trying a sample code from K&B, I dont know why I am unable to see difference in notify and notifyAll

In the above code I am using notify but it is notifying all the tree threads why??? It should have notified only one of them.
[ April 17, 2005: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use tags to enable people to read and interpret your code better. I've edited your post above.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic