摘要: public class MySingleton { private static object myLock = new object(); private static volatile MySingleton mySingleton = null; private MySingleton() { } public static MySingleton GetInstance() { if (mySingleton == null) { //... 阅读全文
posted @ 2014-03-01 10:21 天藐水瓶 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html 阅读全文
posted @ 2014-03-01 09:51 天藐水瓶 阅读(103) 评论(0) 推荐(0) 编辑