Sleep a thread until an event is attended in another thread from a different class
- by Afro Genius
I have an application that fires 2 threads, the 1st launches another class to do some processing which in turn launches a 3rd class to do yet more processing. The 2nd thread in the main class should wait until some event in the 3rd class completes before it performs its job. How can this be achieved?
I had tried implementing a wait/notify to…