title: Delphi 7: How to implement multi-threading?
body: <p>I have a TButton in the main TForm. When user click the button, it will execute the below process:</p>
  
  <pre><code>begin
    Process_done := FALSE;
  
    Process_Result.Clear;
  
    cmdProcess.CommandLine := #34+AppPath+'getdata.exe"';
  
    cmdProcess.Run;
  
    Repeat
      Application.ProcessMessages;
    Until Process_done;
  end;
  </code></pre>
  
  <p>As you can see above, the process calls external executable, and the process can take some times which blocking the main application.</p>
  
  <p>This is only one process, and I need another one.</p>
  
  <p>So, I am thinking to implement multi-threading, where I can run the above process in a separate thread. The other process as well. And the main thread can do something WHILE checking when both processes done.</p>
  
  <p>Can anyone give me some examples how to do this using Delphi 7?</p>
  
  <p>OR point me to an article, simple implementation like this?</p>
  
  <p>Thanks.</p>