title: How to pause / resume any external process under Windows?
body: <p>I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows XP.</p>
  
  <p><a href="http://www.codeproject.com/KB/threads/pausep.aspx" rel="noreferrer">Process suspend/resume tool</a> does it with <code>SuspendThread</code> / <code>ResumeThread</code> but warns about multi-threaded programs and deadlock problems.</p>
  
  <p><a href="http://technet.microsoft.com/en-us/sysinternals/bb897540.aspx" rel="noreferrer">PsSuspend</a> looks okay, but I wonder if it does anything special about deadlocks or uses another method?</p>
  
  <p>Prefered languages : C++ / Python</p>