谁是莲
别怕失败,更多的失败,才能换回最终的成功
博客园
首页
博问
闪存
新随笔
管理
随笔-70 文章-0 评论-55
03 2010 档案
单例模式 项目应用
摘要: 关于单例模式的一个小demo,在多线程访问中,为了实例唯一,所以object锁定下。using System;using System.Collections.Generic;using System.Text;class Singleton{ private static object lockHelper = new object(); private static volatile Sing...
阅读全文
posted @
2010-03-01 23:39
funny zak 阅读(35) |
评论 (0)
编辑
公告