• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread - Wait Doubt

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From web page

In the above pgm, why the output is coming? pls explain
 
Ahmed Khan Mohammed
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I ran the program I dont see any output. It just happened (on my machine) that the notify method was called before the wait method was called.
I modified the code.


The output is
after notify
going to wait
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic