2014年5月29日
摘要: notifyAll()因某个特定锁而被调用时,只有等待这个锁的任务才会被唤醒。 package Thread.Wait; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; class Blocker { synchronized void waitingCall() { try { 阅读全文
posted @ 2014-05-29 00:13 上校 阅读(1001) 评论(0) 推荐(0)