摘要: 从MSDN上看的例子,加上从网上看到的对于lock的一些解释,自己加以总结注释,记录一下。 先看代码: class Program { static void Main(string[] args) { //实例化线程数组 Thread[] threads = new Thread[10]; //实例化Account对象 Account acc = new Account(1000); //构建十个线程赋值到threads ... 阅读全文
posted @ 2013-01-22 11:35 小飞的DD 阅读(216) 评论(0) 推荐(0) 编辑