title: How to make a thread sleep from another thread in Java
body: <p>I have two threads of execution(say Thread1 and Thread2). Thread2 is listening for a particular event and as the event occurs it wants to stop execution of Thread1 and trigger an action. After it is done with the action it needs to continue the execution of Thread1 from where it stopped.</p>
  
  <p>What kind of approach should I take to do this in Java?</p>