When you destroying threads , then you used to Abort() method. This is runtime abort the thread throwing a Thread Aboard Exception, and this exception cannot be caught, it is send to finally block.
Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace how_to_destroy__Thread_in_c_sharp
{
class Destroy_thread
{
public static void Child_Thread()
{
try
{
Console.WriteLine("Child Thread start:");
// do some work, like counting to 10
for (int counter = 0; counter <= 10; counter++)
{
Thread.Sleep(500); //interval between two counter
Console.WriteLine(counter);
}
Console.WriteLine("Child Thread Completed:");


Join the conversation! Your thoughts help the community grow.