title: Sleep a thread until an event is attended in another thread
body: <p>I have two threads in an Android application, one is the view thread, and the other is the worker thread. What I want to do is, sleep the worker thread until the view thread terminates the handling of the onDraw method.</p>
  
  <p>How i can do this? is there any wait for the signal or something?</p>