using System; using System.Threading; namespace ConsoleApplication1 {class Class1{ static void Main(string[] args) { Thread thread1 = new Thread(new ThreadStart(Method1)); Thread thread2 = new Thread(new ThreadStart(Method2)); thread1.Start(); thread2.Start(); } public static void Method1() { while(true) { Console.WriteLine("this is thread : 1"); Thread.Sleep(1000); } } public static void Method2() { while (true) { Console.WriteLine("this is thread : 2"); Thread.Sleep(1520); } }}} 转载于:https://www.cnblogs.com/master-zhu/archive/2009/09/09/1563113.html