HSN Posted May 10, 2005 Posted May 10, 2005 Hello, How can I terminate a thread say T1 by another thread which I already started say T2? Or in general how can I control one thread using other threads? Quote
Wile Posted May 11, 2005 Posted May 11, 2005 Look at the System.Threading.Thread class. Abort, Interrupt, Join, Start and Suspend methods allow you to do things to start/pause/stop and synchronize with that thread. So to terminate a thread first call Abort on the Thread object to make it stop, then call Join to wait until it actually stopped. Quote Nothing is as illusive as 'the last bug'.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.