title: assigning a priority to processes before they are launched
body: <p>I have a specific number of process(C# .exe)  that should be launched. how do i launch them according to their priority.</p>
  
  <p>I know the Process.PriorityClass thing but it's not really useful because it only assigns the priority after the process is launched.</p>
  
  <p>I have this code here (doesn't compares priority yet) but it doesn't work because the processes are not run so I can't assign the priority to them:</p>
  
  <pre><code>Process process1 = new Process();    
  Process process2 = new Process();
  Process process3 = new Process();
  
  process1.StartInfo.FileName = "proc1";
  
  process2.StartInfo.FileName = "proc2"'
  
  process3.StartInfo.FileName = "proc3";
  
  process1.PriorityClass = ProcessPriorityClass.AboveNormal;
  
  process2.PriorityClass = ProcessPriorityClass.BelowNormal;
  
  process3.PriorityClass = ProcessPriorityClass.High;
  
  process2.Start();
  
  process2.WaitForExit();
  
  process1.Start();
  
  process1.WaitForExit();
  
  process3.Start();
  </code></pre>