title: How pause and then resume a thread?
body: <p>I state that I read about thread, but I've never used.
  So I ask to you :)</p>
  
  <p>I have two thread: <code>A</code> and <code>B</code>, 
  where <code>A</code> manages the GUI, and <code>B</code> manages the logic.</p>
  
  <p>I would start with <code>A</code>. </p>
  
  <p>Then when <code>A</code> draw the GUI, I would pause it, to wait <code>B</code> that reach a point X into run method.</p>
  
  <p>And when <code>B</code> reach the X point into run method, I pause <code>B</code>, and resume <code>A</code>. </p>
  
  <p><code>A</code> and <code>B</code> share some variable to manage the GUI, and the logic...</p>
  
  <p>Can I do it? if yes, how? :)</p>