2012年1月16日

AutoResetEvent和ManualResetEvent

摘要: 首先说说线程的终止状态和非终止状态。AutoResetEvent和ManualResetEvent的构造函数中,都有bool变量来指明线程的终止状态和非终止状态。true表示终止状态,false表示非终止状态。看代码片段1:代码片段1: AutoResetEvent _autoResetEvent = new AutoResetEvent(false); private void BT_Temp_Click(object sender, RoutedEventArgs e) { Thread t1 = new Thread(this.Thread1Foo); t1.Start(); Thre. 阅读全文

posted @ 2012-01-16 21:10 breakpoint 阅读(278) 评论(1) 推荐(1) 编辑

导航