Threads

Y

Ying-Shen Yu[MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

kill window 3
internet connection 3
Change assembly name 3
simulating double click on ListView 2
window invisible 2
prevent from refresh 4
dynamically created controls 2
Change system date and time 1

Top