code: def suspend(self):
          
          self.scan_threads() # force refresh the snapshot
          suspended = list()
          try:
              for aThread in self.iter_threads():
                  aThread.suspend()
                  suspended.append(aThread)
          except Exception:
              for aThread in suspended:
                  try:
                      aThread.resume()
                  except Exception:
                      pass
              raise
docs: Suspends execution on all threads of the process.
  
          @raise WindowsError: On error an exception is raised.