title: How do I synchronize 2 processes in threads so they run together?
body: <p>I currently have this code (thanks for the help from here). I need to create the first ProcessMessage as a thread and run the second <code>ProcessMessage</code> synchronously (on the current thread), then perform the Join on the single thread.  Otherwise, I'll have three threads doing effectively two things. How do I modify this to accomplish it? I am on .NET 3.5</p>
  
  <pre><code>Thread thRegion1 = new Thread(() =&gt;
  {
      if (Region1.Trim().Length &gt; 0)
      {
          returnMessage = ProcessTheMessage(string.Format(queueName, Region1));
          Logger.Log(returnMessage);
      }
  });
  
  Thread thRegion2 = new Thread(() =&gt;
   {
       if (Region2.Trim().Length &gt; 0)
       {
           returnMessage = ProcessTheMessage(string.Format(queueName, Region2));
           Logger.Log(returnMessage);
       }
   });
  
  thRegion1.Start();
  thRegion2.Start();
  
  thRegion1.Join();
  thRegion2.Join();
  </code></pre>