master
yihua.huang 2014-04-25 17:41:41 +08:00
parent c6661899fd
commit cdc423f2bf
1 changed files with 2 additions and 1 deletions

View File

@ -53,10 +53,11 @@ public class ThreadPool {
}
}
threadAlive++;
System.out.println(threadAlive);
executorService.execute(runnable);
} finally {
condition.notify();
threadAlive--;
condition.signal();
reentrantLock.unlock();
}
}