I need to block execution of a thread until resumed from another thread. So I wrote my own implementation using
wait() method. Which seems to be working, but it is far from simple.
Is there any ready to use solution? Preferably in java SE 6? Or do I have to use my own implementation? I couldn't find any.
Update More specifically. I need work->block->external release->work->end behavior from thread 1 and ability to release block from thread 2.