0

I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows.

Process suspend/resume tool does it with SuspendThread / ResumeThread but warns about multi-threaded programs and deadlock problems.

Or Detect Threads of any process ID.

I need method deadlocks or uses another method?

Prefered languages : C#

2
  • It is a bad idea because it will create concurrency issues because the assumptions about concurrency in the code those threads are running will be broken unless they are designed to be paused. To help you we need to understand why you think pausing will help you: please expand your question to explain why you want to pause a thread.
    – Richard
    Jul 24, 2014 at 9:05
  • SuspendThread is only safe to do when you suspend all the threads in the process. Like a debugger does. Jul 24, 2014 at 9:47

1 Answer 1

0

as you see in this stackoverflow question there is one way to do this.

There are also other ways to do this.

1
  • This should be a comment. And the question be flagged as duplicated.
    – DatRid
    Jul 30, 2014 at 13:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.