摘要:
class Program12 { static object obj = new object(); static int lastNum = 4; static void WriteNum(object i) { //lock (obj) //{ /... 阅读全文
摘要:
class Program11 { private static void ExecuteInForeground() { DateTime start = DateTime.Now; var sw = Stopwatch.StartNew(); Console.WriteLine("... 阅读全文
摘要:
class Program9 { //检索线程对象 //停止所有前台线程后,运行时将停止所有后台线程,并关闭。 static Object obj = new Object(); private static void ShowThreadInformation(Object state) ... 阅读全文