public static void Main()
Counter count1 = new Counter(2,max);
Counter count2 = new Counter(5,max);
Thread th1 = new Thread(count1.count);
Thread th2 = new Thread(count2.count);
Thread.CurrentThread.Abort();
Console.WriteLine("All threads Done!");
public Counter(int skip, int max){
for(int start = this.skip; start <= this.max; start += this.skip){
Console.WriteLine("\n| "+ Thread.CurrentThread.Name + " | " + start+ "\n");
if(Thread.CurrentThread.IsAlive){
Thread.CurrentThread.Abort();
Console.WriteLine("Kiled");