摘要:主程序调用 执行结果
阅读全文
posted @ 2017-08-22 21:19
|
|
|
随笔分类 - 异步Async
摘要:Monitor对象 1.Monitor.Enter(object)方法是获取锁,Monitor.Exit(object)方法是释放锁,这就是Monitor最常用的两个方法,当然在使用过程中为了避免获取锁之后因为异常,致锁无法释放,所以需要在try{} catch(){}之后的finally{}结构体
阅读全文
posted @ 2017-08-08 23:35
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Collections.Concurrent; //引用命名空间 6 using System.Threading; 7 using System.Di...
阅读全文
posted @ 2017-08-08 22:13
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Diagnostics; 6 using System.Drawing; 7 using System.Linq; 8 using System...
阅读全文
posted @ 2017-08-05 11:23
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Diagnostics; 6 using System.Drawing; 7 using System.Linq; 8 usin...
阅读全文
posted @ 2017-08-04 04:43
|
|