using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace MultiTheadingAbort
{
class Program
{
static void Main(string[] args)
{
Thread th = new Thread(writey);
if (th.IsAlive)
{
th.Start();
th.Abort();
}
for (int i = 0; i <= 10;i++ )
{
Console.WriteLine("hello");
}
Console.Read();
}
private static void writey()
{
for (int i = 0; i <= 9;i++ )
{
Console.WriteLine("kul");
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace MultiTheadingAbort
{
class Program
{
static void Main(string[] args)
{
Thread th = new Thread(writey);
if (th.IsAlive)
{
th.Start();
th.Abort();
}
for (int i = 0; i <= 10;i++ )
{
Console.WriteLine("hello");
}
Console.Read();
}
private static void writey()
{
for (int i = 0; i <= 9;i++ )
{
Console.WriteLine("kul");
}
}
}
}