title: Trigger thread's method by another thread in Java
body: <p>Supposed I have a <code>class MyThread</code>, which implements <code>Runnable</code> with a method <code>dosomething()</code>:</p>
  
  <pre><code>class MyThread implements Runnable{
      Object dosomething(Parameter p){ ... }    
      run(){...};
  }
  </code></pre>
  
  <p>If I do: </p>
  
  <pre><code>main(){
      MyThread my = new MyThread().run();    
      Object o = my.dosomething(p);
  }
  </code></pre>
  
  <p>will <code>dosomething</code> be executed on <code>myThread</code> or in the <code>main</code> Thread? <br>
  How can I start the execution of <code>dosomething</code> on myThread from the main Thread and retrieve the returned Object?</p>