Kevin Wan's Doodle
--The more we do, the more we can do.
博客园
首页
社区
新随笔
联系
订阅
管理
随笔-68 评论-208 文章-0 trackbacks-5
2007年1月17日
C#中不需要用锁的线程安全的Singleton设计模式!
摘要: 典型的线程安全的Singleton实现是使用double-checked locking的实现,但是在.NET中我们并不需要使用double-checked locking就可以优雅地实现Singleton模式。
阅读全文
posted @ 2007-01-17 11:45 Kevin Wan 阅读(4549) 评论(54)
编辑