摘要:
//: concurrency/CriticalSection.java
// Synchronizing blocks instead of entire methods. Also
// demonstrates protection of a non-thread-safe class
// with a thread-safe one.
//package concurrency;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.*; 阅读全文
posted @ 2011-09-20 16:27 |orz 阅读(773) 评论(1) 推荐(0) 编辑