What method is used to stop a running thread?
Interview question and answer by:
Rajni.Shekhar | Posted on: 4/19/2012 | Category:
C# Interview questions | Views: 1523 | |
Points: 40
Select from following answers:- Thread.Suspend
- Thread.Resume
- Thread.Abort
 - Thread.Join
The Thread.Abort method use to terminate the thread.
Example:
Thread threadTest=new Thread(new ThreadStart(funName));
threadTest.Start();
Thread.Sleep(10000);
threadTest.Abort();
Show Correct Answer |
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: