Re: C# Threading, and suspending or killing a thread



Rob wrote:
Hello,

I've got an issue where a process in a third party application has a dll which while exiting sort of freezes and runs away with processor cycles.

i've written a block of code so that I can drill down into the process, and get the offending Thread's ID (since the only ones that will have the issue have higher User processor Time).

But, I can't figure out how to have my .Net app 'kill' or 'suspend' a Thread based on the Id I have gotten. I see a lot of samples on how to do this with treads your application starts itself, but nothing 'external' to the app.

Anyone able to lend a hand?

I'd definitely get them to fix their code instead of creating ugly workarounds. No piece of code lasts longer than a workaround.

Max
.


Loading