Threads

  • Thread starter Thread starter Konrad
  • Start date Start date
Hi Konrad,
There is a note in MSDN
Note An operating-system ThreadId has no fixed relationship to a managed
thread, because an unmanaged host can control the relationship between
managed and unmanaged threads. Specifically, a sophisticated host can use
the CLR Hosting API to schedule many managed threads against the same
operating system thread, or to move a managed thread between different
operating system threads.

so, you may not get a unmanaged thread and kill it.
If you want to abort execution of a Thread object in your program, you may
call its Abort method.
For more information , please refer to:

<Thread.Abort Method ()>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemThreadingThreadClassAbortTopic1.asp

If you have anything unclear ,please be free to reply this thread.


Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Back
Top