C#编程-线程

1.线程池的使用

线程池使用
1  System.Threading.ThreadPool.QueueUserWorkItem(new WaitCallback(Poll));
2 private void Poll(object target)
3 {
4 //代码(不能有对UI进行写的操作)
5 }

 

 

posted @ 2013-04-19 11:21  竖毛杰  阅读(210)  评论(0编辑  收藏  举报