using System; using System.Threading; namespace CSharpSchool { class Test { static void Main() { Thread firstThread = new Thread(new ThreadStart(fun1)); Thread fsecondThread = new Thread(new ThreadStart(fun2)); firstThread.Start(); secondThread.Start(); console.WriteLine("End of Main()"); } public static void Fun1() { for (int i=1; i<=5; i++) { Console.WriteLine("Fun1() writes: {0}", i); } } public static void Fun2() { for (int i=1; i<=6; i++) { Console.WriteLine("Fun2() writes: {0}", i); } } } }