using System; using System.Threading; class DataPro { public void MyPro1() { for(int i=0;i<5;i++) { System.Console.Write(i); } } public void MyPro2() { for(int j=0;j<5;j++) { System.Console.Write(j); } } } class DemoPro { static void Main() { DataPro d1 = new DataPro(); Thread t1 = new Thread(d1.MyPro1); Thread t2 = new Thread(d1.MyPro2); t1.Start(); t2.Start(); } }