Page 1 of 1

exitprocess or getactivethreads

Posted: Fri Jan 16, 2015 10:54 pm
by Colin
Hello there,

Current I am using interruption -1 to end current thread, but I am searching for an option of ending all threads for active process. Is this already possible?

If not, is there a function to return a list of all threads for current process?

Re: exitprocess or getactivethreads

Posted: Sat Jan 17, 2015 3:02 pm
by hidnplayr
Unfortunately, last time I checked, the kernel did not know the difference between a thread and a process yet.

Re: exitprocess or getactivethreads

Posted: Sat Jan 17, 2015 3:15 pm
by Colin
Hi there,

Thanks for the reply. Do the processes have a "parent" property? Which would make it possible to iterate through the processes and end all with parent x.

If all else fails, I guess I will need to write some kind of thread management utility with a linkedlist of thread/process ids.