title: Threading: Application Freezes after using Thread.Join()
body: <p>I understand that the .Join() causes the threads to pause and wait till a thread finishes its work but how can I avoid the UI from getting frozen? This is what my codes look like"</p>
  
  <pre><code>Thread dataThread = new Thread(()=&gt; data = getData(id));
  dataThread.Start();
  dataThread.Join();
  
  Thread storingThread = new Thread(()=&gt; storeData(data));
  storingThread.Start();
  </code></pre>
  
  <p>I need to have the Join since the first thread returns an object containing data that needs to be stored through the second thread. But this causes a UI freeze. How can I implement these in maybe a Background thread? What do yall think I should change?</p>