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) 编辑