摘要: Sole purpose of using concurrency is to produce scalable and faster program. But always remember, speed comes after correctness. Your Java program mus 阅读全文
posted @ 2015-12-21 15:48 ppjj 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 1、使用内部类,而且它是线程安全的,而且只创建一次:/**Prof Bill Pugh, University of Maryland, was the main force behind java memorymodel changes. His principle Initialization-... 阅读全文
posted @ 2015-12-21 11:36 ppjj 阅读(186) 评论(0) 推荐(0) 编辑