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.