文章分类 -  北风之神

一个实例明白AutoResetEvent和 ManulResetEvent的用法
摘要:public class WaitHandlerExample { public static AutoResetEvent waitHandler; public static ManualResetEvent manualWaitHandler; public static void ThreadPoolMain() { waitHandler = new AutoResetEvent(false); ... 阅读全文

posted @ 2012-06-09 09:58 HOT SUMMER 阅读(152) 评论(0) 推荐(0) 编辑

AutoResetEvent 类
摘要:using System;using System.Threading;// Visual Studio: Replace the default class in a Console project with // the following class.class Example{ private static AutoResetEvent event_1 = new AutoResetEvent(true); private static AutoResetEvent event_2 = new AutoResetEvent(false); ... 阅读全文

posted @ 2012-06-09 09:56 HOT SUMMER 阅读(144) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示