using System; using System.Threading; //多线程调试: 2013.10.08 namespace ThreadExample { class App { public struct Data { public string Message; } //将消息写入控制台 static void ThreadMainWithParameter(object o) { Data d = (Data)o; Console.WriteLine("Running in a
1.实现ruby中的多线程 # def test1 # n = 1 # if n > 10 # puts "test1结束" # else # while true # sleep 2 # puts n # n = n + 1 # end # end # end # # # def test2 # n = 100 # if n > 100 # puts "test2结束" # else # while true # sleep 2 # puts n #