Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bastet Massri   on Jan 22 In Java Category.

  
Question Answered By: Richie Smith   on Jan 22

You're actually just misusing a Thread. A thread cannot notify itself to wake
up from a wait. I think you had better take a look at whatever example you were
using because I'm certain it's not written like the code  you have here. If one
thread is told to wait, it will wait until notified. Which means that it will
*not* execute any more code. Another thread has to perform the notify in order
to wake that thread up.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on A challenging question about Threads&Synchronization Or get search suggestion and latest updates.