摘要: 本文侧重实例,关于.NET同步原语的概况介绍,可以参考 Overview of Synchronization Primitives . 在线程间共享数据有可能会导致竞速状态而发生数据不一致的状态, 例如: namespace TaskParallel{ class Account { public int Balance { ge... 阅读全文
posted @ 2011-11-12 07:44 yinzixin 阅读(2322) 评论(0) 推荐(2) 编辑