Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help me Thread Question!! :(

 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andy,

We have two thread one is a main thread and another one which handels enents. can we do wait()/notify() between these two thread. without using timer or creating another thread if yes please tell me how?

Thanks
Waiting for reply.
 
vishwas bhatt
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reply on this ...anyone out there who can help me out please.
 
Andy Robinson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the wait-hold function thread, I put the v.basic kind of code you'll need to use in there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic