SyntaxFix
Write A Post
Hire A Developer
Questions
You can only call notify on objects where you own their monitor. So you need something like
synchronized(threadObject) { threadObject.notify(); }