title: How to release current thread when invoking a blocking call and continue when the call returns in asynchronous coding in java
body: <p>I want to release current thread when invoking a blocking call and continue when the call returns in asynchronous coding in java. The example is as follows:</p>
  <pre><code>public class Thread1 implements Runnable {
      public void run() {
          someBlockingCall();  // when do this calling, I want the current thread can be relased to do some other stuff, like execute some other Runnable object
          getResult();  // when return from the blocking call, something can inform the thread to continue executing, and we can get the result
      }
  }
  </code></pre>
  <p>How can I realize this? Please help me.</p>