Threads and modules...
-
Hi all I cannot match between thread and process. Need to kill a cirtain thread, I know in general to what module the thread belongs but cannot distinct between the diffrent threads. all I get is a list of the threads ID that belong to my process....
-
Hi all I cannot match between thread and process. Need to kill a cirtain thread, I know in general to what module the thread belongs but cannot distinct between the diffrent threads. all I get is a list of the threads ID that belong to my process....
Killing a thread is a bad idea in almost all cases. It can destabilise the entire process.
Steve
-
Killing a thread is a bad idea in almost all cases. It can destabilise the entire process.
Steve
I know...... I have no choise. It's not my module.......
-
I know...... I have no choise. It's not my module.......
OK then, but it will end in tears!
Steve
-
OK then, but it will end in tears!
Steve
Can I, at least, configure to what modoule does a cirtin thread belongs to?
-
Can I, at least, configure to what modoule does a cirtin thread belongs to?
No I dont think so. AFAIK the managed threads are virtual, i.e. they are not even guaranteed to correspond to a physical (i.e. a Windows kernel) thread. This is somewhat illustrated by the fact that managed threads have a ManagedThreadId property, whose value does not correspond to the kernel's thread IDs; and it has a name, for which the kernel has no equivalent member at all. In my experience, there still is a 1-to-1 correspondence between a managed thread and a kernel thread, but I havent found any way to map them, other than having each managed thread call some native code to get its own kernel thread ID that is. Hope this clarifies things a bit.
Luc Pattyn
try { [Search CP Articles] [Search CP Forums] [Forum Guidelines] [My Articles] } catch { [Google] }