using System;
using System.Threading;
class ThreadClass{
public void Thread1(){
for(int i=0 ;i<10;i++)
{
Thread.Sleep(200);
Console.WriteLine(i);
}
public class Program
public static void Main()
ThreadClass tc =new ThreadClass();
Thread t1 = new Thread(new ThreadStart(tc.Thread1));
Thread t2 = new Thread(new ThreadStart(tc.Thread1));
t1.Start();
t2.Start();